Comments (15)
Do you have this line in your composer.json
file?
"phundament/gii-template-collection": "0.8.*",
And do you have the corresponding folder in ./vendor in your app?
from app.
in my composer.json i have : "name": "phundament/gii-template-collection",
i created the folder ./vendor in my folder ./protected ....but its happend nothing
what do i need in ./vendor?
from app.
Do you use the same folder structure, like phundament/app or a custom one?
Where does composer install the packages in your app?
You're receiving this error in a model generated with FullModel, right?
from app.
i install gtc...i created my model with FullModel and everything is right, then i created FullCrud...and i recived this error...i dont install phundament/ app in my aplication never...is necesary?
from app.
when i generated my model with giix model....and then a generated my fullcrud with gtc...no have problems...but when i generated my gtc fullmodel...and then i can generated my crudfull i recived that error :S
from app.
FullCrud can save MANY_MANY related models automatically, there's a section in actionCreate() and actionUpdate() to handle this, but your model has to use the CSaveRelationsBehavior
.
Have a look at your model base-classes generated with FullModel, there should be a behaviors() method like:
public function behaviors() {
return array_merge(
parent::rules(),
array(
'savedRelated' => array(
'class' => 'vendor.phundament.gii-template-collection.components.CSaveRelationsBehavior'
)
)
);
}
Just adjust the class
attribute.
from app.
yes! i reemplaze my function behavoirs and now its working :) thnks!
from app.
Btw: Have a look at the FullCrud slim Templates.
from app.
where that is? 🌴
from app.
Last input before the preview button "Code Template".
Looks like this :)
from app.
oh...looks great...but when i tray to generera crud with slim templates i recived:
PHP warning
in_array() expects parameter 2 to be array, null given
C:\xampp\htdocs\planillas\protected\extensions\gtc\fullCrud\templates\slim\admin.php(49)
37 'dataProvider'=>$model->search(),
38 'filter'=>$model,
39 'pager' => array(
40 'class' => 'TbPager',
41 'displayFirstAndLast' => true,
42 ),
43 'columns'=>array(
44
45
46 <?php
47 $count = 0;
48 foreach ($this->tableSchema->columns as $column) {
49 if (in_array($column->name, Yii::app()->getModule('gii')->params['crud.skipGridColumns'])) {
50 continue;
51 }
52
53 if ($count == 7) {
54 echo "\t\t/*\n";
55 }
56
57 if (strtoupper($column->dbType) == 'TEXT') {
58 echo "#";
59 } else {
60 $count++;
61 }
}
i created a simple table Hola (id_hola,desp)
from app.
should be fixed by schmunk42/gii-template-collection@d5d3ec6 I also tagged 0.8.3, may need a few minutes until it's available via packages.phundament.com
from app.
nice! now its working! now i traying giiplus :) thnks for all!
from app.
You're welcome.
Would love to hear some feedback about the slim CRUDs.
from app.
they look great! :) good work!!
from app.
Related Issues (20)
- Error when access: sh: 1: lessc: not found HOT 4
- Error 255: require(/app/src/config/assets-gen/prod.php): failed to open stream HOT 6
- ..
- Unable to get successful install HOT 5
- Can't connect to mariaDB HOT 18
- Phundament with postgres db. HOT 11
- Errors from __DIR__ in class variable initialization HOT 5
- Use net instead of link HOT 3
- No interactive mode for docker-compose on Windows HOT 1
- Phundament update HOT 1
- Permission issues with GitLab runner HOT 8
- Cleaner way to override admin layout for user module HOT 2
- Error parsing reference: local/phd/app: is not a valid repository/tag HOT 13
- volume mount windows info HOT 1
- cron can't access db HOT 1
- Codeception update HOT 1
- composer.lock OR versions. HOT 7
- QUestion about setup.sh HOT 3
- Unfortunately MyApp has stopped. How can I solve this? HOT 1
- Broken link to here for Yii 1 - composer setup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app.