# |
Jun 29th 2012, 15:13 |
Porpado |
Hello, I am embarking on a large CMS type web app project. It requires ACL and CRUD functionality. I have a lot experience with codeigniter and PHP but after a little reading it seems Cake might be a better tool for the job (It seems to easily support those features.) |
# |
Jun 29th 2012, 15:04 |
NetersLandreau |
hmm.. database table name sub_categories baked model would be SubCategory, baked controller would be SubCategories.. table name sub_category is not according to conventions |
# |
Jun 29th 2012, 14:59 |
freebird |
but the others had no need to be on plural, singular is fine for them, |
# |
Jun 29th 2012, 14:58 |
freebird |
NetersLandreau, |
# |
Jun 29th 2012, 14:58 |
freebird |
did it again, I noticed that when it's a double word, the lis Sub Category or subcategory, the table goes on plural |
# |
Jun 29th 2012, 14:51 |
NetersLandreau |
cakephp, whoever that is, does not seem to understand CakePHP naming conventions.. |
# |
Jun 29th 2012, 14:48 |
freebird |
NetersLandreau, yeah, but cakephp told me to create like that, |
# |
Jun 29th 2012, 14:48 |
NetersLandreau |
and should not the controller be SubCategoriesController? |
# |
Jun 29th 2012, 14:47 |
freebird |
class subCategory extends AppModel{ var $name = "subCategory"; var $useTable = 'subCategory'; |
# |
Jun 29th 2012, 14:46 |
freebird |
NetersLandreau, sorry, model name is: subCategory.php |
# |
Jun 29th 2012, 14:46 |
NetersLandreau |
why is the model Category instead of SubCategory? |
# |
Jun 29th 2012, 14:45 |
freebird |
I get: Notice (8): Undefined property: subCategoryController::$subcategoryController [APP/controllers/sub_category_controller.php, line 27] |
# |
Jun 29th 2012, 14:45 |
freebird |
you guys, It's all goind just fine, until I created a controller calle subCategory, the table name is: sub_categories, and the model, category.php, the problem is that I can't use this: $this->set('data', $this->subCategoryController->find('all') ); |
# |
Jun 29th 2012, 14:43 |
mo_fo_sho |
brb |
# |
Jun 29th 2012, 14:43 |
mo_fo_sho |
i think its fine |
# |
Jun 29th 2012, 14:41 |
mo_fo_sho |
let me look |
# |
Jun 29th 2012, 14:40 |
NetersLandreau |
is the path to the core correct in webroot/index.php? |
# |
Jun 29th 2012, 14:38 |
mo_fo_sho |
anybody know why after a new bake my home page is just a blank screen (tried deleting cache) |
# |
Jun 29th 2012, 14:26 |
rchavik |
~bin |
# |
Jun 29th 2012, 14:22 |
tintin |
PhpNut: Hello |
# |
Jun 29th 2012, 14:22 |
thews |
what is lost can never be saved |
# |
Jun 29th 2012, 14:22 |
tintin |
savant: Are you there? |
# |
Jun 29th 2012, 14:21 |
tintin |
Hi |
# |
Jun 29th 2012, 14:21 |
tyler_h |
Any reason why my prev link is not working? I plug in a image into the text piece and set it to escape false. It displays but is not a link.. |
# |
Jun 29th 2012, 14:08 |
zanto |
Found my problem. For some reason $_SERVER['SCRIPT_NAME'] includes the parameters after index.php on my server. Can I just hack in a fix in Cake/basics.php? |
# |
Jun 29th 2012, 14:04 |
ADmad |
~tell charming_boy about broken |
# |
Jun 29th 2012, 14:03 |
charming_boy |
??? |
# |
Jun 29th 2012, 14:02 |
mo_fo_sho |
be more specific and someone probably can |
# |
Jun 29th 2012, 14:01 |
charming_boy |
Can anyone help? |
# |
Jun 29th 2012, 14:01 |
charming_boy |
hello...I have a problem with cakephp installation |
# |
Jun 29th 2012, 14:00 |
ADmad |
grzes: if you use relative path it will be relative your View/<Controller>/ folder, if you start with / it will be from app/View. Plus you dont need the .ctp |
# |
Jun 29th 2012, 13:57 |
mo_fo_sho |
anybody know why after a new bake my home page is just a blank screen (tried deleting cache) |
# |
Jun 29th 2012, 13:47 |
grzes |
hmm but what is the difference between: $this->extend('Common/sidebar-page.ctp'); and $this->extend('/Common/sidebar-page.ctp'); ? i thought that leading slash tells that parent view should be fetched from app/View dir |
# |
Jun 29th 2012, 13:45 |
dogmatic69 |
or just dont do that |
# |
Jun 29th 2012, 13:44 |
NetersLandreau |
try overriding the controller render method.. that specifies the view to be rendered.. |
# |
Jun 29th 2012, 13:43 |
dogmatic69 |
exactly.. so you cant extend a plugin view and specify app/View |
# |
Jun 29th 2012, 13:43 |
grzes |
dogmatic69: yes, plugin view |
# |
Jun 29th 2012, 13:42 |
dogmatic69 |
grzes: you extending a plugin view, not app view |
# |
Jun 29th 2012, 13:41 |
grzes |
i am extending plugin view, any ideas how to specify parent view in app/Views folder ? currently it is looking for parent view in plugin folder |
# |
Jun 29th 2012, 13:41 |
dekna |
y |
# |
Jun 29th 2012, 13:41 |
grzes |
anyone around ? :) |