Re: Convincing my company to use Cake
You can use Cake, AND Smarty! What are your other options to be honest? Write it all from scratch? Use another framework? Don't forget open source means community, and the Cake community is growing rapidly, so most problems you'll encounter others have encountered. Cake is also growing rapidly, I must say I'm nothing short of impressed at the rate of new versions, updates and of course tutorials and components being added by the users themselves. Disadvantages? Well, if your after a Cake expert to walk in and help you on a project, perhaps someone who is a PHP programmer who has not used MVC before, that might cause some delays while he learns the ins and outs. I can't think of any more to be honest. You write code, you finish an application. Inbetween that, the team gets a kick out of using a moden, excellent and efficient framework, and probably gets to go home on time. Oh wait I know another disadvantage, once you start using cake you begin to forget everything else. It's like the brain getting used to wearing glasses. The picture is better, it just makes sense ;-) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Cjs stripping non-unicode compatible
Hmm even with adding in this line into ajax.thtml layout it still comes up. Everything comes out as still. I thought it was my locale __('keyword') causing it, but when I removed it and manually put in the chinese characters they still come out as ???. Is Cjs stripping my unicode, or, is the Element.Updater(_elem, unescape() ruining my strings? Here is my POST dump from firebug: Date: Mon, 28 Aug 2006 06:36:56 GMT Server: Apache/2.0.55 (Unix) PHP/5.1.4 DAV/2 mod_ssl/2.0.55 OpenSSL/0.9.7i X-Powered-By: PHP/5.1.4 Set-Cookie: CAKEPHP=6203dd4e212235f70d7ad00a07729493; expires=Mon, 04 Sep 2006 06:36:56 GMT; path=/eApproval/ Content-Length: 2737 Connection: close Content-Type: text/html;charset=UTF-8 _elem=$('header'); Element.update(_elem,unescape("%3Cdiv%20id%3D%22header_content%22%3E%0A%09%3Cdiv%20id%3D%22header_left%22%3E%0A%3Cdiv%20id%3D%22language%22%3E%0D%0A%3Ca%20href%3D%22%2FeApproval%2Flanguages%2Fchange%2Fen_gb%22%20%3E%3Cimg%20src%3D%22%2FeApproval%2Fimg%2Flocale%2Fen_gb.png%22%20alt%3D%22Change%20to%3A%20UK%20English.%22%20title%3D%22Change%20to%3A%20UK%20English.%22%20style%3D%22border%3A%200px%3B%22%20%2F%3E%3C%2Fa%3E%3Ca%20href%3D%22%2FeApproval%2Flanguages%2Fchange%2Ffr_fr%22%20%3E%3Cimg%20src%3D%22%2FeApproval%2Fimg%2Flocale%2Ffr_fr.png%22%20alt%3D%22Change%20to%3A%20UK%20English.%22%20title%3D%22Change%20to%3A%20UK%20English.%22%20style%3D%22border%3A%200px%3B%22%20%2F%3E%3C%2Fa%3E%3Ca%20href%3D%22%2FeApproval%2Flanguages%2Fchange%2Fcn_cn%22%20%3E%3Cimg%20src%3D%22%2FeApproval%2Fimg%2Flocale%2Fcn_cn.png%22%20alt%3D%22Change%20site%20locale%20to%20Chinese.%22%20title%3D%22Change%20site%20locale%20to%20Chinese.%22%20style%3D%22border%3A%200px%3B%22%20%2F%3E%3C%2Fa%3E%3C%2Fdiv%3ENot%20logged%20in.%0A%3C%2Fdiv%3E%0A%3Cdiv%20id%3D%22header_right%22%3E%0A%3Cfont%20size%3D%2216%22%3E%20%3C%21--%20%3F%3F%3F%3F%20--%3E%20%3C%2Ffont%3E%0A%3C%2Fdiv%3E%0A%3C%2Fdiv%3E")); _elem=$('dynamic_menu'); Element.update(_elem,unescape("")); _elem=$('main_content'); Element.update(_elem,unescape("%3Cdiv%20id%3D%22boxed_dk_ex%22%3E%0A%3Cform%20onSubmit%3D%22return%20false%3B%22%3E%0A%09%3Clabel%20for%3D%22username%22%3E%3F%3F%3F%3F%3C%2Flabel%3E%0A%09%3Cinput%20name%3D%22data%5BUser%5D%5Busername%5D%22%20%20size%3D%2220%22%20class%3D%22textbox_required%22%20value%3D%22%22%20type%3D%22text%22%20id%3D%22UserUsername%22%20%2F%3E%3Cbr%20%2F%3E%0A%0A%09%3Clabel%20for%3D%22password%22%3E%3F%3F%3C%2Flabel%3E%0A%09%3Cinput%20name%3D%22data%5BUser%5D%5Bpassword%5D%22%20%20size%3D%2220%22%20class%3D%22textbox_required%22%20value%3D%22%22%20type%3D%22text%22%20id%3D%22UserPassword%22%20%2F%3E%0A%09%3Cinput%20type%3D%22submit%22%20value%3D%22%3F%3F%26rarr%3B%22%20id%3D%22submit294069164%22%20onclick%3D%22return%20false%3B%22%20%2F%3E%3Cscript%20type%3D%22text%2Fjavascript%22%3EEvent.observe%28%22submit294069164%22%2C%20%27click%27%2C%20function%28event%29%7B%20new%20Ajax.Updater%28%27main_content%27%2C%27%2FeApproval%2Fusers%2Flogin%27%2C%20%7Basynchronous%3Atrue%2C%20evalScripts%3Atrue%2C%20parameters%3AForm.serialize%28Event.element%28event%29.form%29%2C%20requestHeaders%3A%5B%27X-Update%27%2C%20%27main_content%27%5D%7D%29%20%7D%2C%20false%29%3B%3C%2Fscript%3E%3C%2Fform%3E%0A%3C%2Fdiv%3E")); _elem=$('header'); new Effect.Appear(_elem,[]) _elem=$('dynamic_menu'); new Effect.Appear(_elem,[]) _elem=$('main_content'); new Effect.Appear(_elem,[]) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Alternating Row Colors
AD7 is right, tablecells does this automatically, and you can set the claternating colours $html->tableCells($tr, array('style'=>'background:#E4E4E4'), array('style'=>'background:transparent')); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Auckland Based Bakers
and if there are any Beijing bakers, a bottle of tsingtao awaits :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to use caching of views in multilinguaal sites?
Hmm I have a multilingual site, and cacheing is enabled, but I never really checked if the pages are cached. Each page is rendered so i guess its caching as normal :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: set function
if you had add.thtml your variable will be available when /add/ is called. if you set both variables under user() { } they will both be available in user.thtml. hope this helps --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Optimizing cake projects
really? are there a list of ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: AJAX Update not working
I get safari crashing on me when I'm logging in. I'm not sure how to fix it really :) Everything else works fine, even IE! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Passing variables to views with Cajax
hah ok $page->link_remote_url(__('choose'),'/companies/init_list/' . $company_id) !!! sicapitan wrote: > I have used cjs successfully for a while I really think its awesome :) > But now I need to > I have $ajax->link() which calls a number of views :) > > My ajax link is : > $ajax->link('Choose','/companies/init_list/' . $company_id) > > my function init_list($id=null) > { > $this->set('users', $this->User->findAll("User.company_id = > '$id'")); > $this->view = 'Cjs'; > } > > my cjs file is : > echo > $page->replace_request_action('#default_list','/companies/default_list'); > echo > $page->replace_request_action('#custom_list','/companies/custom_list'); > echo > $page->replace_request_action('#user_list','/companies/user_list'); > echo $page->effect('#default_list','Highlight'); > echo $page->effect('#custom_list','Highlight'); > echo $page->effect('#user_list','Highlight'); > ?> > > this... doesnt work :) Hmm... if I put in my cjs: > > echo $page->replace_request_action('#user_list','/companies/user_list/' > . $id); > > if I set it in my init_list then move my set logic into function > user_list it renders the result, but doesnt update the view. > > Anyone passed varaibles before? (not a personal question) > > Cheerio! > Ryan! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Passing variables to views with Cajax
I have used cjs successfully for a while I really think its awesome :) But now I need to I have $ajax->link() which calls a number of views :) My ajax link is : $ajax->link('Choose','/companies/init_list/' . $company_id) my function init_list($id=null) { $this->set('users', $this->User->findAll("User.company_id = '$id'")); $this->view = 'Cjs'; } my cjs file is : replace_request_action('#default_list','/companies/default_list'); echo $page->replace_request_action('#custom_list','/companies/custom_list'); echo $page->replace_request_action('#user_list','/companies/user_list'); echo $page->effect('#default_list','Highlight'); echo $page->effect('#custom_list','Highlight'); echo $page->effect('#user_list','Highlight'); ?> this... doesnt work :) Hmm... if I put in my cjs: echo $page->replace_request_action('#user_list','/companies/user_list/' . $id); if I set it in my init_list then move my set logic into function user_list it renders the result, but doesnt update the view. Anyone passed varaibles before? (not a personal question) Cheerio! Ryan! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Cjs stripping non-unicode compatible
is that the same as charset('UTF-8'); ?> ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Cjs stripping non-unicode compatible
Cajax anyone UTF-8 guess not :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: good at typin? get at me
Try comp.lang.ruby --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cjs stripping non-unicode compatible
I'm populating multiple divs with Cjs templates, and im getting a lot of ??? ??? ?? in place of my unicode characters. Normal ajax->link stuff works fine so I am wondering if somewhere in cjs it strips out unicode characters unintentionally? if not then it is something else :-) any help appreciated sicapitan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Ajax link custom JS
I have this: link('Choose','/accountmanagers/choose_company/' . $item['id'], array('update'=>'display_card', 'after' => 'myAccordion.showThisHideOpen(stretchers[1]);', 'complete' => 'new Effect.Highlight(\'display_card\');')); ?> it comes up saying myAccordion is not defined, but it is, as when the page loads I have a
Strange table names and queries when running on osx
Hi there! I had a cake app running on a windows box with xampp and it was working fine. Then i bought it over to OS X running mamp, and some of the queries did not work so I re-made them, changing the join type. With Debug was set to 2, I'd get errors saying that table.field did not exist, then when removing 'table' it said 'field' was ambiguous. Which is fair enough because it occured in the other table. To fix the problem I had to do an INNER JOIN instead, and prefex all my fields with the table name before hand. I am running Model->execute() on this $sql statement (don't recommend find(), this is a unique components) This sounds like a Mysql setting, someone mentioned a case setting but it is set to 0. Another issue occured whereby I execute a ( $sql) statement, and on the PC the array returned was the plural [Cats], [Dogs] etc, then on the mac, it was [Cat], [Dog]. This sounds like it is more related to case. Checking mamp's mysql.log: "[Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive. This means that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2" I checked and 0 is for dev and the rest mostly for production. So my next question is, if i'm wrong about the case, where is my config for Apache in mamp? http.conf is for directives etc, but what about the startup options where lower_case_table_names has to go? Any help appreciated :) Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: CakePHP Built-in Webservices?
I'm interested in this component, are you able to put it on cakeforge or send it through perhaps? I'm after some ideas, as eventually i wish to offer authenticated RSS feeds through cake --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Social Networking Example
Good work nick Perhaps there is an avenue for 'Built with Cake' on the cake home page listing a few sites, or does that break rules, phpnut? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Migrating from other (or no) framework.
I would say it is a fairly easy process if your application is similar to just inserting, modifying and displaying data. Cake allows for scaffolding which can give you this functionality immediatly so you can concentrate on other areas. Those other areas, by the looks of codecharge, would be deceiding what libraries it includes are to be replaced by Cake's core, or components or helpers produced by the community. Once you're happy with converting these other specialised areas, you can then replace the scaffolding with something of your own to customize your application. Whilst a straight conversion sounds easy in theory, cake offers a lot of cool shit which you will get caught up in which I suspect might be where most of your time is spent implementing ;-) Before you know it, you have rewritten everything in MVC ways. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: 有在中国的朋友吗?一起研究 CAKE
Hey Daniel, i'll be in Beijing in August. I dont think we'll be the only 2 bakers there though - whats the oven climate like? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Definitive (data) pagination
I might do the AJAX part, as my solution is entirely ajax --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: 有在中国的朋友吗?一起研究 CAKE
点晶科技 yeeahh! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AJAX Form builder
Who wants to develop an AJAX form builder in Cake? :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: xajax in CakePHP - CakeX package moves to CakeX project
nice one, ill look out for it --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: ajax autocomplete.
man i'd pay this guy $50 just to piss off --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Saving to 2 models
ahhh so simple :) Thanks! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Saving to 2 models
$this->arrCompany['data']['Company'] = $this->params['data']['Company']; $this->arrUser['data']['Users'] = $this->params['data']['User']; $this->Company->save($this->arrCompany['data']); $this->User->save($this->arrUser['data']); Hmm ok so I know this doesn't work for Users only, but the company is saved. I get this: Notice: Undefined property: CompaniesController::$User in C:\Program Files\xampp\htdocs\eApproval\app\controllers\companies_controller.php on line 31 Line 31 being $this->User->save... Am I in the right place here? I know my Users is linked to my company in my model, is the correct way to do this from the users controller instead? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Saving to 2 models
I had a search and couldn't find anything explicit with the current version so I thought I'd ask. I have a 'users' and 'companies' model: class User extends AppModel { var $name = 'User'; var $belongsTo = array('Group','Company'); var $recursive = 3; } class Company extends AppModel { var $name = 'Company'; var $hasMany = 'User'; } I have a form in a view /companies/add_company/ which has both company information, and user information on it which I want to save down at the same time. In my 'Companies' controller: function add_company() { if (!empty ($this->params['data'])) { if ($this->Company->save($this->params['data'])) { $this->set('data', $this->Company->findAll()); $this->render('index', 'ajax'); } else { // do nothing } } $this->autoLayout = NULL; } This saves the company information correctly but of course the user information is not. Do I need to reformat the params['data'] to something like: $this->arrCompany['data'] = $this->params['data']['Company']; $this->arrUser['data'] = $this->params['data'][User']; then save: $this->Company->save($this->arrCompany['data'])) $this->User>save($this->arrUser['data'])) ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax multiple dic update ..again, sorry to bother
http://cakephp.org/pastes/show/6f24627372b00190553280d6a73b shows an example. http://rossoft.wordpress.com/ for more --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax multiple dic update ..again, sorry to bother
if your going to be doing a lot of ajax work on updating divs like I am, then its probably a good idea to use Cake Cajax RJS Templates (thanks RosSoft). It's very simple to implement --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: use ajax link with more div's
did you find a solution, makiemark? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to update multiple divs with one ajax call
can RequestHandler help me with this? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Back button
oh ok i might since im in the area ive seen a few solutions, it'll have to be in a helper i guess --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to update multiple divs with one ajax call
i know i can update multiple divs with one call, but can I specify their content in the call as well? like link('User Control', array('/users/admin','/company/company_menu/'), array('update' => array('main_content','main_menu'))); ?> would be great but isn't the case is there another way perhaps in the admin controller to know what link is being called, and then $this->render('main_menu','ajax'); or something? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Roles, groups and users with Cake ACL
I used othAuth as it is readable both in code and in db tables. I had a little bit of trouble setting up, but thats because I'm a noob. Othy (CrazyLegs) has a nother version coming but it has not been tested yet, still, you can grab it here: http://cakeforge.org/snippet/detail.php?type=package&id=14 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Back button
did you have any success with this rossoft? Cheers --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Back button
did you have any success with this rossoft? Cheers --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to update multiple divs with one ajax call
This works for me in IE for a single div, I have not tried multiple divs in IE yet. nate wrote: > Okay, this is working fine on the following: > PC: Firefox 1.5.0.4 > Mac: Firefox 1.5.0.4, and 1.0.7 > > Clearly there's something else at issue here. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: n00b with ACM questions
Hi When is 1.0 coming out? thx :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: trying to create a form builder
Hi how did you go with this? Im after a simple ajax form builder in the coming weeks and wouldnt mind expanding on what you have done. Cheers sicapitan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to editing thtml files in Dreamweaver
Either way, can someone host it on cakePHP somewhere! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: $ajax->link not to load default.thtml
ok you win now! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: $ajax->link not to load default.thtml
Superb, you win --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
$ajax->link not to load default.thtml
Each time I populat a $ajax->div, it keeps loading the entire rendered page into the div including default.thtml which I just want as a header. link('Add Talent (a)', '/users/add_talent/', array('update' => 'main_content', 'complete'=>'new Effect.Appear(\'main_content\');')); ?> is there something I put into my users controller to stop this? Or do I have to extend the htmlhelper with $header and $foother then header();?> each time I load the page? Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
$ajax->submit css class
print $ajax->submit('Add task', array('url' => 'add', 'update'=>'tasks_todo'); print $ajax->submit('Add task', array('url' => 'add', 'update'=>'tasks_todo','class'=>'something'); doesn't work, is there a different format? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: ajax tutorial : object not found
http://groups.google.com.au/group/cake-php/browse_thread/thread/7b98e2a8f78458e6/# i should refresh my groups more often :) path problem as usual url("/tasks/undo/" . $item["id"]);?> instead of /tasks/undo/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ajax tutorial : object not found
Hmm, unless I'm missing something with the new version I can add a task, but as soon as I click the checkbox to mark as done, it comes up as: "Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. " ...etc in the tasks_done div. All the files are there, no names have been changed. Anyone else experienced this? k thx bye --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: radio button select
a thanks! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
radio button select
radio('User/twins', array('1' => 'Yes', '0' => 'No')); ?> how do i make option 1 (yes) be selected? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: generateList() from different model
oops continued : State: selectTag('User/user_id', $states, $selected_state, null, null, false); ?> --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: generateList() from different model
ahh Users model: $hasmany ... 'State' => array('className'=> 'State', 'conditions' => '', 'order'=> '', 'dependent'=> true, 'foreignKey' => ''), States Controller: class StatesController extends AppController { var $name = 'States'; var $belongsTo = 'User'; } State model: class State extends AppModel { var $name = 'State'; var $hasMany = 'User'; } view: $this->set('states', $this->User->State->generateList()); function add_talent() { ... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
generateList() from different model
Hi there I have a 'User' model, and a 'State' model with the appropriate controllers. so when i go /users/add_talent which calls add_talent.thtml I have a dropdown which I want to fill with the states. My states db is id,name I have no link in my user model to states, does it need to go into $hasMany? When I call add_talent under users, where do I have to put in: $this->set('states', $this->State->generateList()); in order for my tag selectTag('State/id', $states,$html->tagValue('State/name')); ?> to work? I dont even know if those tags work, I haven't got that far yet! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Models and multiple tables
ill read that cheers :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Models and multiple tables
just seemed a bit excessive to have 1,000,000 files for 1,000,000 tables --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Models and multiple tables
well, some databases are huge, trying to display the files in a file tree, then finding the file, would take forever --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: how to organise this app
Damn, I'm the other way around. I just got it set in libraries and had been using the Joomla framework. Now I want to expand outwards without learning another language, and Cake was the natural choice. I'm just used to design my pages, slip in some code, including a file here and there, and letting it run on a server. Now I have to break it up, and the terminology is making me do it right. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
how to organise this app
i have 3 sets of users (lets not worry about ACL right now) they have 3 separate logins and they goto a different area admin -> admin area client -> client area user -> user area they all use certain functions here and there, i'd only want to restrict access to pages and elements on them, not particular functions. the MVC is a little confusing to how i've written it previously, where I just put them through to a certain set of pages, and included a file with all the functions they need. So how do i setup my model? The database has about 20 tables, about 100,000 records. do i have an admin model, client model and a user model or 1 model, the application name, and just call the necessary functions. tutorials only deal with 1 table, its a bit silly, and there are no real apps to download install and learn from. thanks sicapitan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Models and multiple tables
According the the manual, it says the model relates directly to a database table. But I have multiple tables. Does this mean I need a model.php file for each table? Surely not. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---