Re: optgroup label

2011-10-19 Thread WebbedIT
As you're after Program.name as your group value you need to contain your Program model. By default for recursive when using find('list') is set to -1 to be sure to include recursive=1 too. HTH, Paul Reference: http://groups.google.com/group/cake-php/browse_thread/thread/3cf1fc29ba8942bd On

Re: Changing the default CakePHP footer and header

2011-10-19 Thread WebbedIT
LOL @ I haven't read all your instructions, and I'm having problems getting it to work then now that I have read all your instructions all is fine! Funny how so many people treat the book the same way!?! They read a few pages, get something working then walk away from the book and start asking

Re: CakePHP 1.3 + Jquery

2011-10-19 Thread WebbedIT
I cant find a decent tutorial (or the correct way to do it) to add jquery into cakephp 1.3 Are you sure you can't get this bit working? jQuery itself gives instructions on how to download it and include it in your page with a script / tag. If you choose to Cake-ify this up a bit, which most

Re: vtiger CRM with Cakephp

2011-10-19 Thread WebbedIT
On Oct 18, 12:51 pm, zuha rich...@razorit.com wrote: I will after we finish the migration to CakePHP 2.0.   Otherwise we only share it with potential contributors who meet with me personally (phone / screen share).   Its in alpha phase. But you're simply re-inventing the wheel that Fahad and

Pagination generatetreelist results

2011-10-19 Thread Constantin.FF
I need to paginate the results of generatetreelist together with the Posts results. Already I have $this-paginate('Post' ); but also I need the treelist of the posts. I can do this by if check before the display of posts in the view or merging the arrays in the controller but is there more simple

Re: 2.0 upgrade shell

2011-10-19 Thread Jeremy Burns | Class Outfit
So I'm having limited/mixed results and wanted to post an update. I'm attempting to update a fairly complex app. I created a blank version of 2.0, then moved my files into the right folders (so controllers into Controller etc) and then ran the upgrade all script. - The shell didn't rename my

Re: 2.0 upgrade shell

2011-10-19 Thread Jeremy Burns | Class Outfit
I have also tried 'cake bake model all' and got this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /Volumes/Data/jeremyburns/Sites/CakePHP_2_0/lib/Cake/Model/Datasource/DboSource.php on line 434 Jeremy Burns Class Outfit Tel: +44 (0) 208

Re: redirects or exceptions?

2011-10-19 Thread euromark
if you redirect with a 301 to the index page it should be more correct but that probably doesnt work for all occasions I do see your point of valid or not although I still like the idea of the redirect as the user is less annoyed (sometimes the article is not yet approved or whatever and actually

Routes Problem

2011-10-19 Thread porangi.chris
Hi, I'm trying to create a custom route that matches the url used by a previous system to a new version written in cake. Basically I have urls that are domain.com/r/i/some-name and I'd like to match them to the categories - display action with two named parameters id and url. Id maybe null as

Re: 2.0 upgrade shell

2011-10-19 Thread majna
Yes, enable plugins in bootstrap before running upgrade sh. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Re: 2.0 upgrade shell

2011-10-19 Thread majna
When upgrading plugins for each plugin add plugin option like: cake upgrade all -p Blog You have to upgrade App::import() manually. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Routes Problem

2011-10-19 Thread majna
Maybe Router::connectNamed(array('id', 'url')); before those routes? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from

Re: vtiger CRM with Cakephp

2011-10-19 Thread Simon Males
On Wed, Oct 19, 2011 at 5:56 PM, WebbedIT p...@webbedit.co.uk wrote: On Oct 18, 12:51 pm, zuha rich...@razorit.com wrote: I will after we finish the migration to CakePHP 2.0.   Otherwise we only share it with potential contributors who meet with me personally (phone / screen share).   Its in

Re: Problem generating view for REST webservice in cakephp 2.0

2011-10-19 Thread Greg Skerman
Ok i sort of sorted it out... got rid of $xml-header, and instead of just using $logs = $this-model-find('all'), i did $logs = array('Logs' = $this-model-find('all') to create a root element... that worked if logs contained 1 items.. but if it contains more than 1 item, I got the same error...

Re: Login Difficulty : CakePHP 2.0

2011-10-19 Thread majna
You have Users plugin. User model is not found and Cake creates an instance of AppModel. (this odd behavior enables you to query db tables without having to create model first.) Make sure class User extends UsersAppModel and configure Auth to use Users.User as model name:

Cake Bake Fatal Error

2011-10-19 Thread ludo monster
I'm trying to run cake bake model all but it dies. Here's a snippet from when I try to bake the table that blows up: code --- Please select one of the following validation options:

Re: Login Difficulty : CakePHP 2.0

2011-10-19 Thread oDiN
Have you do this ? function beforeFilter() { $this-Auth-authenticate = array( 'Form' = array('userModel' = 'User') ); } On Oct 19, 1:21 pm, zuha rich...@razorit.com wrote: For some reason the UsersController after

Re: vtiger CRM with Cakephp

2011-10-19 Thread zuha
Yes, thats why I didn't respond to it. (not to mention I'm not on this board to argue with anyone) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Re: CakePHP 2.0.0 release

2011-10-19 Thread zer0_gravity
thanks On Oct 18, 11:19 pm, #2Will willjbar...@gmail.com wrote: sorry, beyond me also.  I run mamp on my apple.  Its simple and works and i guess it has pdo on it as it runs 2.0.  Try that. will On Oct 19, 1:42 pm, zer0_gravity zr...@hotmail.com wrote: You are right I don't have

Re: what does this mean in cakephp core source code?

2011-10-19 Thread Jeremy Burns | Class Outfit
If it is in a freshly baked project you are still using the default layouts that contain the adverting banner. You never run a production application using those defaults, so don't sweat it. It's not unreasonable for the Cake team to want to promote monetising services to help fnd the free

Re: Issue with an app not displaying properly

2011-10-19 Thread Yves S. Garret
Domain alias. On Tue, Oct 18, 2011 at 5:07 PM, Dee Johnson devario...@gmail.com wrote: this is an extreme longshot but try this open up run and do a treacetoute from your wired system to the site, then do the same with the wired... when u access the intranet is it from domain alias or IP ?

Re: what does this mean in cakephp core source code?

2011-10-19 Thread Sam Sherlock
Newly baked apps have a home.ctp file that displays some inital info. Not certain of the details in entirely but it display recent info. That home.ctp is something you change anyhow. - S On 19 Oct 2011 14:38, Azrael azrael...@gmail.com wrote: Today before I connect to internet, I started my

Re: 2.0 upgrade shell

2011-10-19 Thread euromark
i just wrote down a list of bugs and enhancements I found the last couple of hours trying to port a medium to large sized app http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2117-improvements-for-20-upgrade-shell On 19 Okt., 13:32, majna majna...@gmail.com wrote: When upgrading

Re: CakePHP 2.0 Released

2011-10-19 Thread euromark
ok, wasnt the OS but the way i called the upgrade shell. anyway - I opened a ticket regarding some enhancements/bugs -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their

Re: what does this mean in cakephp core source code?

2011-10-19 Thread AD7six
On Oct 19, 9:04 am, Azrael azrael...@gmail.com wrote: Today before I connect to internet, I started my browser and go to my new local baked project and got this strange screen. Firefox can't connect to cakephp.org! It is a local project so Why should it try to connect to cakephp.org. I look

Console Bake plugin

2011-10-19 Thread Björn Etzold
Why i can not bake model and controller for a plugin? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group,

Re: Login Difficulty : CakePHP 2.0

2011-10-19 Thread zuha
Thank you, thank you, thank you. That worked nicely. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group,

Re: Console Bake plugin

2011-10-19 Thread AD7six
On Oct 19, 3:52 pm, Björn Etzold bjoern.etz...@9flats.com wrote: Why i can not bake model and controller for a plugin? Because you're sitting too far from the desk to reach the keyboard? AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

Re: what does this mean in cakephp core source code?

2011-10-19 Thread Jeremy Burns | Class Outfit
Hilarious as ever! Jeremy Burns Class Outfit http://www.classoutfit.com On 19 Oct 2011, at 15:06, AD7six wrote: On Oct 19, 9:04 am, Azrael azrael...@gmail.com wrote: Today before I connect to internet, I started my browser and go to my new local baked project and got this strange

Re: Console Bake plugin

2011-10-19 Thread Jeremy Burns | Class Outfit
You are on form today Andy. Jeremy Burns Class Outfit http://www.classoutfit.com On 19 Oct 2011, at 14:52, Björn Etzold wrote: Why i can not bake model and controller for a plugin? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: CakePHP 2.0 Released

2011-10-19 Thread Thomas Ploch
Forever We should talk this over again in a billion years. :D On 17.10.2011 18:55, mark_story wrote: Hey Derek, My current plan is to continue releasing bugfix/maintenance releases at least until 3.0 comes out. The frequency of releases will depend on the flow of tickets though. Security

Am i breaking MVC?

2011-10-19 Thread Ernesto
Hi all. i have a simple app wich uses 2 different DBs. The second DB is used just to import data on a daily basis, no writes. i have 2 options: 1 - switch DB on-the-fly in my Order::import function function import() { $this-useDbConfig = external_db; $this-query(SELECT * FROM blah);

Re: Changing the default CakePHP footer and header

2011-10-19 Thread Dee Johnson
If only I could like your comment -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Issue with an app not displaying properly

2011-10-19 Thread Dee Johnson
did u try the bit about traceroute and trying to access it from IP instead? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Re: Console Bake plugin

2011-10-19 Thread euromark
he sure is...^^ @björn would you be so kind to provide some actual code you tried to enter into your console? plus the result of your communication with the bake shell - it must have answered you somehow. thank you so much and please don't expect us to be magic consoles. most of us still cannot

Re: Am i breaking MVC?

2011-10-19 Thread Zaky Katalan-Ezra
Why cake or php involved with this operation? On Wed, Oct 19, 2011 at 4:52 PM, Ernesto e.fanz...@gmail.com wrote: Hi all. i have a simple app wich uses 2 different DBs. The second DB is used just to import data on a daily basis, no writes. i have 2 options: 1 - switch DB on-the-fly in my

Re: Changing the default CakePHP footer and header

2011-10-19 Thread Yves S. Garret
:-) You _have_ read everything I've written within context, yes? If you have not comprehended anything, I'll be more than happy to simplify my explanation. On Wed, Oct 19, 2011 at 2:44 AM, WebbedIT p...@webbedit.co.uk wrote: LOL @ I haven't read all your instructions, and I'm having problems

Retrieve extra field with generatetreelist

2011-10-19 Thread MetZ
Hi all. I am wondering how I can retrieve an extra field from my rows using generatetreelist? $this-data = $this-Category-generatetreelist(null, null, null, 'nbsp;nbsp;nbsp;'); The field I am looking for is status, to display if the category is active or not. And,, btw.. I am using

Re: Retrieve extra field with generatetreelist

2011-10-19 Thread Dee Johnson
http://book.cakephp.org/view/1348/generatetreelist I have not used generaltreelist personally but based on the docs above it seems that it works just like 'find' and if you have your relationships set up correctly and you set the recursive attribute to bring back the appropriate data you

Re: Console Bake plugin

2011-10-19 Thread Matthew Kaufman
LOL On Wed, Oct 19, 2011 at 10:11 AM, AD7six andydawso...@gmail.com wrote: On Oct 19, 3:52 pm, Björn Etzold bjoern.etz...@9flats.com wrote: Why i can not bake model and controller for a plugin? Because you're sitting too far from the desk to reach the keyboard? AD -- Our newest site

Re: Console Bake plugin

2011-10-19 Thread Yves S. Garret
Bjoern, please provide some info about your issue. The source code and the commands you entered into your console would be of great help. You can enter your code here: http://bin.cakephp.org http://bin.cakephp.org/view/6396576 How can you 'be' a magic console? How about 'being' a regular

Re: Issue with an app not displaying properly

2011-10-19 Thread Yves S. Garret
I know what the issue is. One of the other developers entered code that checked for certain IP addresses and let them proceed if they met the requirements. The wireless IP was being blocked as a result. After I made an exception for this, it now displays just fine. Thanks for your help. On

How can I override the method __d() ?

2011-10-19 Thread santos
How can I override the method __d() ? I need to put the msg of __d() in array to use in the botton of the page. Where can I override this methos? in appcontroller? Thanks -- View this message in context:

Re: Pagination generatetreelist results

2011-10-19 Thread Constantin.FF
the issue became a bit more complicated. Here is what I need as a result. I have the Post Model which behave as a Tree, and also every post has a parent or for the first level the parent is 0. Also every post has a sort number which helps for them to be sorted. I wold like to display paginated

Re: CakePHP 2.0.0 release

2011-10-19 Thread mark_story
You can always use macports or homebrew to install PHP. The default apple PHP is janky and busted. sudo port install php5 sudo port install php5-mysql -Mark On Oct 18, 10:42 pm, zer0_gravity zr...@hotmail.com wrote: You are right I don't have pdo installed on my php server. I have done some

Re: Embedded forms, model inheritance

2011-10-19 Thread daf182
Hi, First of all I forgot to mention that I'm using CakePhP 2.0, PHP 5.3.1, and MySQL5.1.41, and Apache 2.2.14. Some investigation has been done. So the validation inhereted from the parent model is working. The only thing I had to do is to no to put the name of the parent model on the view as I

Re: How can I override the method __d() ?

2011-10-19 Thread Miles J
You shouldnt override it. Cant you just do: $var = array(__d()); Or make your own function? function ___d() { } On Oct 19, 10:19 am, santos dos.santos.char...@gmail.com wrote: How can I override the method __d() ? I need to put the msg of  __d() in array to use in the botton of the page.

using App::build in cakephp 2.0 to specify a path for plugins

2011-10-19 Thread #2Will
Hello I have added a path to my plugins paths at the top of my bootstrap file like this: App::build(array( 'Plugin' = array(ROOT . '/tractor/Plugin') )); and put the glorious debugKit in that folder. I get the error below. Can anybody help me out here? Seems like there isn't much to

LDAP datasources

2011-10-19 Thread Chris Cinelli
In the releases notes of CakePHP 2.0 it says that cakephp 2.0 has a hook for LDAP. However looking at https://github.com/cakephp/datasources/tree/2.0 LDAP datasource is listed as incompatible. Does it mean that the LDAP datasource still needs some changes to be able to work in CakePHP 2.0 ? When

Re: LDAP datasources

2011-10-19 Thread José Lorenzo
I think you can get it working with very minor changes. It just need proper accessors (public, protected, private) importing the datasource class (App::uses('DataSource', 'Model/Datasource')) and I think that's it give it a try! -- Our newest site for the community: CakePHP Video

Re: Can't get Plugin model to work / be noticed at all

2011-10-19 Thread #2Will
OK, its being ignored again. Haven't changed the code in the plugin and have deleted the cache 18 times even rebooted the machine. Does anybody have any clues whats going on here? w On Oct 18, 6:13 pm, #2Will willjbar...@gmail.com wrote: Oh.  Now it works.  But no idea why, so not so much a

Re: using App::build in cakephp 2.0 to specify a path for plugins

2011-10-19 Thread José Lorenzo
You are missing a trailing slash in you App::build() path -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group,

Re: LDAP datasources

2011-10-19 Thread Chris Cinelli
It just need proper accessors (public, protected, private). Can you be more specific? Thank you On Wed, Oct 19, 2011 at 7:40 PM, José Lorenzo jose@gmail.com wrote: I think you can get it working with very minor changes. It just need proper accessors (public, protected, private) importing

Re: CakePHP 2.0.0 release

2011-10-19 Thread Ryan Schmidt
On Oct 19, 2011, at 22:23, f.f wrote: I got the same error [Cake is NOT able to connect to the database] and I have check the phpinfo PDO PDO supportenabled PDO driverssqlite, sqlite2 PDO_SQLITE PDO Driver for SQLite 3.x enabled PECL Module version(bundled) 1.0.1

Re: CakePHP 2.0.0 release

2011-10-19 Thread Andras Kende
Hello, Look like you don't have the mysql PDO configured Just checked my phpinfop(): PDO PDO support enabled PDO drivers mysql, pgsql, sqlite, sqlite2 pdo_mysql PDO Driver for MySQLenabled Client API version mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $ Directive

Re: CakePHP 2.0.0 release

2011-10-19 Thread f.f
Thanks. but I use the rent server, I cannot install PDO mysql driver. [?] why is it cakephp 2.0.0 changed the way of connect the mysql DB. 2011/10/20 Andras Kende and...@kende.com Hello, Look like you don't have the mysql PDO configured Just checked my phpinfop(): PDOPDO

Re: Problem generating view for REST webservice in cakephp 2.0

2011-10-19 Thread Juan Basso
Unfortunately the Xml class is not able to determine the root key and the child keys from a Model::find(). Model::find() return something like: Array( [0] = Array( ['ModelA'] = Array( ... ) ['ModelB'] = Array( ... ) ), [1] = Array (...) ) So, in this case, what is the root key?

Re: CakePHP 2.0.0 release

2011-10-19 Thread José Lorenzo
Can you link to your hosting provider web page? also... can you paste the complete phpinfo() ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Re: Am i breaking MVC?

2011-10-19 Thread Dr. Loboto
New model for this task is good way to go. Simple and clean. And extendable easier in case if data import become more tricky then now. On 19 окт, 21:52, Ernesto e.fanz...@gmail.com wrote: Hi all. i have a simple app wich uses 2 different DBs. The second DB is used just to import data on a

Re: 2.0 upgrade shell

2011-10-19 Thread Vitor Pacheco
Hello, I'm trying to upgrade an application for cake2, and I am getting the exception MissingControllerException with the message Controller class Controller could not be found. I added the folder lib to the include path. here is my include path:

Constant mysqli warnings

2011-10-19 Thread Miles J
So my error.log is littered with all these warnings. I spent some time going through all my code and could not locate anything wrong on my end. Is anyone else getting these? (Before I start digging into the Cake core). I am using 1.3.8. 2011-10-19 21:19:03 Warning: Warning (2):