Cake app that manages ACL (ARO/ACO)
Is there an open source (or publicly available) CakePHP app that does the management of standard Cake 1.2 ACL ARO/ACO data through a web GUI? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Simple Static Site with Cake
I realize CakePHP's strength is in a site that uses databases connectivity, and the usage is largely based off of using Models. But what if I wanted to, at least temporarily, build a simple static site, but still use CakePHP? i.e. No database connectivity, just static content. Similarly, for a database-driven site, how are the Models designed for the links/pages that require no models/database? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Basic Question: Behaviors
So - if I needed a controller to be able to modify multiple tables that are related to each other - I would do the changes in Behaviors, which would be used by each Model (of each affected table) - correct? i.e. If multiple tables need to be modified at once, use a Behavior (called by multiple Models) - since a Model (by itself) is related only to a single table. Is this a correct assumption/statement? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Scaffolding my models - is this right?
So I've got 4 models set up: owner.php, property.php, street.php, and user.php; as well as their controllers all set up. My models are as per below: class Owner extends AppModel { var $name = 'Owner'; var $belongsTo = array('User'); var $hasOne = array('Property'); } class Property extends AppModel { var $name = 'Property'; var $belongsTo = array('Street', 'Owner'); } class Street extends AppModel { var $name = 'Street'; var $hasMany = array('Property'); } class User extends AppModel { var $name = 'User'; var $hasOne = array('Owner'); } The streets table just has a mapping of an ID to a street name. When I look at /myApp/properties, I see that the street_id gets mapped properly to the street name (i.e. the Scaffold shows the street name, from the streets table, and does not display the street_id that is in the properties table). But why does it not do the same for users/ owners information? It shows the owner_id as a clickable link to a view of the owner_id for the owners table, which also shows the user_id as a clickable link to a view of the user_id for the users table. I was expecting all of the info (from users and owners table) to be in-line each row of the properties view, just like how the street names are shown (instead of the street_id). Do I have the relationship between the models set up incorrectly? It seems to behave correctly in that they are linked correctly - I just wanted the properties view to show all the related data from the users and owners table instead of just a link to them via the ID; just like how it is working with the streets table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Working with INNER JOIN tables
Bueller? :-) Can anyone help, or point me in the right direction? Thanks! -taka On Feb 22, 1:06 am, takabanana [EMAIL PROTECTED] wrote: How does CakePHP handle (or With CakePHP, how do you do...) INSERT, UPDATE, and DELETE across multiple tables with an INNER JOIN query? sorry - still very very new to CakePHP. Looking for books/tutorials in working with INNER JOIN table queries since my projects use those a TON. Thanks for any help/pointers! -taka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Working with INNER JOIN tables
How does CakePHP handle (or With CakePHP, how do you do...) INSERT, UPDATE, and DELETE across multiple tables with an INNER JOIN query? sorry - still very very new to CakePHP. Looking for books/tutorials in working with INNER JOIN table queries since my projects use those a TON. Thanks for any help/pointers! -taka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help with Advanced Installation
Cool - got it working (at least locally). here's my setup: AppServ\www\cake\ AppServ\www\cake\cake\ AppServ\www\cake\docs\ AppServ\www\cake\vendors\ AppServ\www\cake\index.php AppServ\www\acakesite\app\config\ AppServ\www\acakesite\app\controllers\ AppServ\www\acakesite\app\models\ AppServ\www\acakesite\app\plugins\ AppServ\www\acakesite\app\tmp\ AppServ\www\acakesite\app\vendors\ AppServ\www\acakesite\app\views\ AppServ\www\acakesite\app\index.php AppServ\www\acakesite\css\ AppServ\www\acakesite\files\ AppServ\www\acakesite\img\ AppServ\www\acakesite\js\ AppServ\www\acakesite\css.php AppServ\www\acakesite\index.php *1* *1* has: define('ROOT', DS.'AppServ'.DS.'www'); define('APP_DIR', 'acakesite'.DS.'app'); define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.'cake'); Thanks! On Aug 7, 2:25 pm, Jon Bennett [EMAIL PROTECTED] wrote: Once the local testing is done, how would the actual production site be configured? can the cakephp libs/core be hidden one directory above the www on the production servers? yes, this I think would be considered best practice. Just move the cakephp dir to the same level as www (not inside), this leaves you with just the contents of webroot in www (just change the defines as listed above). hth, jon -- jon bennett w:http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help with Advanced Installation
Once the local testing is done, how would the actual production site be configured? can the cakephp libs/core be hidden one directory above the www on the production servers? on a related note, are there any disadvantages of the cakephp libs/ core being placed one directory above the public_html directory? -taka On Aug 6, 2:26 pm, Jon Bennett [EMAIL PROTECTED] wrote: D:\AppServ\www -- http docs root (localhost) D:\AppServ\www\onesiteroot -- one web project D:\AppServ\www\anothersiteroot -- another web project D:\AppServ\www\heresanothersite -- yet another web project this is very easy, place cakephp dir (inc app, webroot etc) in the root of your server D:\AppServ\www\cakephp for each project you're working on, make a copy of 'app'. then move the contents of app/webroot into D:\AppServ\www\heresanothersite and set the defines in D:\AppServ\www\heresanothersite\index.php define('ROOT', 'D:\AppServ\www'); define('APP', 'name_of_app'); Now you have one place for your cakephp projects, and a dedicated webroot for each project. hth jon -- jon bennett w:http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help with Advanced Installation
Thanks for the reply, guys... Well, I use AppServ at home (much smaller and 'simpler' than Xampp... www.appservnetwork.com ). Been using that for the past 4 years (all PHP stuff)... Since a lot of my projects are becoming quite large and complicated, instead of myself building my own framework, I did my research and there's a 90% possibility that CakePHP does most of what I need. The reason for my question is... AppServ installs like this: D:\AppServ\www -- http docs root (localhost) D:\AppServ\www\onesiteroot -- one web project D:\AppServ\www\anothersiteroot -- another web project D:\AppServ\www\heresanothersite -- yet another web project This is how I develop locally - yet I wanted all the sites to use the same CakePHP core libraries/installation, but have separate views/apps using the framework. Once testing is done locally, each site/project would be its own domain, and therefore also have its own CakePHP installation, which I would prefer to have outside of the wwwroot (i.e. one level above wwwroot, which is the root where I log into when I FTP to the web server) - just because, well, that just seems cleaner. Any suggestions? -taka On Aug 5, 10:52 pm, housebolt [EMAIL PROTECTED] wrote: I'm with kabturek on this one. I'd stick with the initial download setup until you learn the ins and outs of cake and its structure. It's simple, just drop the whole download into a folder accessible by your browser, make sure mod_rewrite is on, set up your database.php file in /app/config/ and you're ready to go! If you don't have a development server on your computer a great one with EASY setup set up is xampp. Xampp and xampp lite have everything you need to get started with cake.http://www.apachefriends.org/en/xampp.html On Aug 4, 1:24 am, kabturek [EMAIL PROTECTED] wrote: From what you've written you seem to want to develop an app - woudn't it be wiser to use the *developement* setup ? ;) probably on your home machine ? You want a production setup for dev ... imo you should stick with the basic setup for now - and when you actually learn cake - there is no problem in putting everything in its place. greets, On Aug 3, 10:14 pm, takabanana [EMAIL PROTECTED] wrote: I'm new to CakePHP - ready to learn it - so I'm trying to set it up on a shared hosting account. currently, when I log into my account via FTP, i get into one level above the public_html (webroot). I'd like to put the CakePHP libraries/framework there... and all of the site's stuff (i.e. apps/views) be within public_html, which is one level below where I want the CakePHP's core/libraries. so how do I set up index.php? Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Help with Advanced Installation
I'm new to CakePHP - ready to learn it - so I'm trying to set it up on a shared hosting account. currently, when I log into my account via FTP, i get into one level above the public_html (webroot). I'd like to put the CakePHP libraries/framework there... and all of the site's stuff (i.e. apps/views) be within public_html, which is one level below where I want the CakePHP's core/libraries. so how do I set up index.php? Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help with Advanced Installation
This is the structure that I was thinking of... /cake/cake/ /cake/cake/config/ /cake/cake/docs/ /cake/cake/libs/ /cake/cake/scripts/ /cake/cake/app_controller.php /cake/cake/app_model.php /cake/cake/basics.php /cake/cake/bootstrap.php /cake/cake/dispatcher.php /cake/vendors/ /public_html/app/ -- I assume EVERYTHING under this is site- specific??? /public_html/app/config/ /public_html/app/controllers/ /public_html/app/models/ /public_html/app/plugins/ /public_html/app/tmp/ /public_html/app/vendors/ /public_html/app/views/ /public_html/ -- I assume, what was /cake_install/app/webroot /public_html/css/ /public_html/files/ /public_html/img/ /public_html/js/ /public_html/.htaccess /public_html/css.php /public_html/favicon.ico /public_html/index.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help with Advanced Installation
What if I did NOT want the webroot files to be at the actual webroot (at least during develpment/testing, where there are multiple websites on a shared server?) i.e. How can I move the /cake_install/app/webroot files into / public_html/app/webroot WITHOUT having to set the actual www webroot to be /public_html/app/webroot and leaving it as /public_html/ ?? On Aug 3, 4:47 pm, takabanana [EMAIL PROTECTED] wrote: This is the structure that I was thinking of... /cake/cake/ /cake/cake/config/ /cake/cake/docs/ /cake/cake/libs/ /cake/cake/scripts/ /cake/cake/app_controller.php /cake/cake/app_model.php /cake/cake/basics.php /cake/cake/bootstrap.php /cake/cake/dispatcher.php /cake/vendors/ /public_html/app/ -- I assume EVERYTHING under this is site- specific??? /public_html/app/config/ /public_html/app/controllers/ /public_html/app/models/ /public_html/app/plugins/ /public_html/app/tmp/ /public_html/app/vendors/ /public_html/app/views/ /public_html/ -- I assume, what was /cake_install/app/webroot /public_html/css/ /public_html/files/ /public_html/img/ /public_html/js/ /public_html/.htaccess /public_html/css.php /public_html/favicon.ico /public_html/index.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---