Re: to change the decoration of active link

2009-03-24 Thread kai
maybe i'm not understanding correctly but it's css that highlights the link where you take the mouse over. the helper that i linked to will allow you to decorate the link of the current page and add text-decoration: none to it. So for example, I'm on the homepage so the Home link has text-decorat

ACL Design

2009-03-24 Thread mguthrie
I'm looking into CakePHP for developing an application that appears to have some unique requirements. I'll try to break it down as simply as I can: 1.) Users register with the site 2.) A user can belong to one or more organizations (by invite only). These organizations keep data specific to thei

Re: Getting all functionality in "non architectural" requests

2009-03-24 Thread rartavia
Thanks for your answer mscdex. I found a workaround, as it is configured by default in /app/config/ routes.php the pages controller handles /pages/* requests so /pages/myView renders /app/views/pages/ myView.ctp. The html helper was available immediately but I added "var $helpers = array('html',

Re: custom/advanced setup

2009-03-24 Thread matt
what kind of deployment problems are you talking about? as for right now, i am hosting everything myself.. so i really do need to have separate discrete apps on one server. at any rate, i ended up using something like a combination between production and development setup using symbolic links fr

Re: custom/advanced setup

2009-03-24 Thread matt
i actually followed those instructions before posting here. i could get the index.php file to find everything and connect to the database, but it would not find my app files when i tried to navigate to mydomain.com/app1/posts, for example. i ended up using symbolic links to connect everything, a

Re: Release: 1.2.2.8120

2009-03-24 Thread Providence
Just downloaded the new version. Congrats. --~--~-~--~~~---~--~~ 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

Email body template in different place

2009-03-24 Thread RJ
In my project i have to send mails for every activity and body content differs for every activity. I want to keep the mail body contents in separate files so that designers can directly change it w/o hushing into php code. Is there any way by which i can get html content from a ctp file in a php s

Topics for blog posts

2009-03-24 Thread Miles J
So I was wondering what type of topics/tutorials you would like to see. Im hoping to dish out more then I am not and it would be great to get some ideas. Some of what I have written so far: http://www.milesj.me/blog/archives/topic/9 --~--~-~--~~~---~--~~ You receiv

Re: Tree structure..

2009-03-24 Thread Flipflops
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html The link is actually taken from http://book.cakephp.org/view/91/Tree, but it is easy to overlook. This article explains about what the lft and rgt actually mean in terms of the underlying database design - in a nutshell you have

Re: Paginator links in 1.2.2

2009-03-24 Thread Mauricio Morales
That´s great. Thanks! On Mar 23, 3:29 pm, Martin Westin wrote: > I created a ticket yesterday and jperras fixed the problem already (!) > > If you have a problem with this in version 8120 you can sync to the > 1.2 branch or get the latest paginator any way you > prefer:https://trac.cakephp.org

Created & modified fields automatically populating in models

2009-03-24 Thread Turgs
Hello Are there common reasons why the created and modified fields within my MySQL 'users' table remain NULL even when a user is created or modified? I feel like I've tried everything. * dropped the table * gone line by line through my user.php model code It all works OK on all my other models.

Re: Created & modified fields automatically populating in models

2009-03-24 Thread Daniel Chcouri
What's your exact schema structure? On Tue, 2009-03-24 at 02:22 -0700, Turgs wrote: > Hello > > Are there common reasons why the created and modified fields within my > MySQL 'users' table remain NULL even when a user is created or > modified? > > I feel like I've tried everything. > * dropped

label into form->input

2009-03-24 Thread kicaj
How create input like this: something It's possible? --~--~-~--~~~---~--~~ 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

Re: Created & modified fields automatically populating in models

2009-03-24 Thread Turgs
Hi My exact schema is: CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL auto_increment, `email` varchar(255) NOT NULL, `password` varchar(50) NOT NULL, `affiliate_id` int(11) default NULL, `group_id` int(11) default NULL, `login_count` int(11) unsigned NOT NULL default '0', `d

Re: CakePHP as a part of project

2009-03-24 Thread Aivaras
Thanks for your answer, Martin, the problem is that I do not attempt to port a CMS, I would like to change my web-based game's code to cake. I have done the following: Created a subdomain extra.mygame.com for cake only (so that I can move some parts of my game to cake) In my old code changed sess

updateAll gets a Left join sql

2009-03-24 Thread Trandaburu Tiberiu Andrei
hi , when i trie to update a model i get : Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@yahoo.comArray WHERE 1 = 1' at line 1 my model looks like that class User extends Ap

Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread artoros
Hi there, I have a problem with the translate behaviour and the automatic language selection, that cake obviously does. To make it short: It seems that my (or all?) Internet Explorer (IE7) and Firefox (FFx3) use a different country code for different languages. For example: IE uses "deu" and the

Disable cache for particular process in controller

2009-03-24 Thread depi
Hi Cake bakers smile.gif I'm new to Caching and I would like to use it in my new CakePHP application, however one small problem emerged during its development: I have a controller where I used for example: var $cacheAction = '5 minutes'; // so this should cache all actions of that controller

Re: label into form->input

2009-03-24 Thread Muhammad Rashid Babsel
use form helper... $form->input('name') http://book.cakephp.org/view/189/Automagic-Form-Elements On Tue, Mar 24, 2009 at 5:23 PM, kicaj wrote: > > How create input like this: > >something > > > > It's possible? > > > -- Muhammad Rashid Babsel http://hammudi.com --~--~-~--~-

isapi rewrite 3

2009-03-24 Thread Chillwabbitt
Hi I have installed isapi rewite 3 from halicon, however I have one blasted problem and it's more than likely a rule. I can see the home page just fine with all it's styling and such, however if I call a controller I have to do it as follows: http://www.mydomain.co.za/index.php/controller/action

Fatal error = blank page

2009-03-24 Thread Henrik Gemal
if I'm running debug=0 and get a: "Fatal error: Call to undefined method" I get a blank page. Can I somehow show an error page instead? I've tried using ErrorDocument 500 /error/ but that doesn't work. My site seems to return a "200 OK" with the "fatal error" --~--~-~--~~-

Re: updateAll gets a Left join sql

2009-03-24 Thread Amit Badkas
As per http://book.cakephp.org/view/75/Saving-Your-Data, updateAll() method needs two arguments and you have provided only one. Also keep in mind that literal values of fields to save should be quoted Amit http://amitrb.wordpress.com/ http://coppermine-gallery.net/ http://cheesecake-photoblog.org

Re: limit access to a site?

2009-03-24 Thread Aurelius
Thanks! One more problem, when it is going live, the Allow from would be a domain like "service.mydomain.de" and not a IP address, any solutions for that? thx Aurelius On 24 Mrz., 01:22, Graham Weldon wrote: > class AppController extends Controller { > >     var $allowedHosts = array('127.0.0.1

Re: limit access to a site?

2009-03-24 Thread Smelly Eddie
yes, read a book On Mar 24, 8:41 am, Aurelius wrote: > Thanks! > One more problem, when it is going live, the Allow from would be a > domain like "service.mydomain.de" and not a IP address, any solutions > for that? > > thx > Aurelius > > On 24 Mrz., 01:22, Graham Weldon wrote: > > > class AppC

RE: label into form->input

2009-03-24 Thread Dave Maharaj :: WidePixels.com
Same idea I was trying to get the same thing. Cake renders this: Password But what I need is. Sure I could hard code it by hand where needed but thats not a very good approach and there are times when I would need this for multiple checkbox's. Any ideas. Dave _

Re: l10n not working on production server

2009-03-24 Thread bberg
figured it out... http://blog.devayd.com/2008/05/error-the-requested-address-was-not-found-on-this-server/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-ph

Re: label into form->input

2009-03-24 Thread Muhammad Babsail
besides hard coded evtime...i think you can extend the form helper. what u said ? On Mar 24, 8:06 pm, "Dave Maharaj :: WidePixels.com" wrote: > Same idea > I was trying to get the same thing. Cake renders this: > > Password > name="data[User][password]"/> > > But what I need is. > > > nam

Re: ACL Design

2009-03-24 Thread Smelly Eddie
ACL can give you all the flexibility you need really. This seems like a straight forward solution. If I, eddie, am an Admin for Loco's Tacos, but only a user for Mary's Margaritas, then you can give me permissions as such. allow eddie CRUD rights on Employee records for locos tacos allow eddie

Re: label into form->input

2009-03-24 Thread Marcelo Andrade
On Tue, Mar 24, 2009 at 7:23 AM, kicaj wrote: > > How create input like this: > >    something >     > > > It's possible? I had this same doubt sometime ago[1]. As Matt's said in that topic, you could do this: My label: input('MyModel.field' , array ('label'=> false)); ?> But you should con

Re: isapi rewrite 3

2009-03-24 Thread James K
RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?url=$1 [L,QSA] These are the rewrite rules I use with isapi rewrite 3. I would also recommend avoiding the use of a main .htaccess file and just properly set the doc

Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread James K
This is why I don't rely on automagic sniffing of locale settings I always recommend that locale be requested from the user and then handled in sessions and/or cookies. This way you can always ensure it is consistent and what the user wants to see. - James On Mar 24, 4:40 am, artoros wrote

Re: Email body template in different place

2009-03-24 Thread mscdex
On Mar 24, 4:44 am, RJ wrote: > Is there any way by which i can get html content from a ctp file in a > php string and then send it to mail function. You could use the 'file_get_contents' php function to do that. --~--~-~--~~~---~--~~ You received this message bec

strange 404

2009-03-24 Thread fain182
i have a really strange problem.. if I visit http://localhost/dianadobreva/anfore/edit/31 it's all okay, but if i complete the form and submit it, the same url gives me 404 and a blank page.. I tried to set debug =2 but doesn't give me no errors, it only shows me the query.. my controller action

Building a helper; Fatal error cake/libs/view/view.php on line 702

2009-03-24 Thread Tony Thomas
I want to build some options for use across several views, so a custom HTML helper seems like the best option. However, I'm running into problems. Here's the helper: class PositionHelper extends AppHelper { var $helpers = array('Html'); function getPositions() { $yaxes = array

Re: Release: 1.2.2.8120

2009-03-24 Thread Hiero
I know this is a noob question, but its driving me crazy. How do I grab just the 1.3 branch from the Git repo on Chaw? I used to work with SVN just fine to develop against nightlies of 1.2.x.x - but moving 1.3 to Git is seriously hampering my workflow. Could someone point me in the right direction

Re: Dynamic MySQL-driven routes

2009-03-24 Thread James K
Having dynamic routes driven out of the database - even with caching - sounds like a large amount of overhead to add to your application for very little gain (not to mention very error prone... users making the same routes for different information, for instance). Why not, instead, allow your user

Re: ACL Design

2009-03-24 Thread James K
Unless you need the ability to have fine grained, unique permissions on a per-user basis, then I would avoid entering your users into the ARO table (like most ACL tutorials suggest). Instead add your roles to the ARO table. Then in your system logic, you can pull the user's role in a particular or

1.3 API

2009-03-24 Thread Hiero
Is it to early in the game or will the API for 1.3 be generated and available on api.cakephp.org anytime soon? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send em

Re: ACL Design

2009-03-24 Thread mguthrie
So if I understand you correctly: 1.) Create roles that are global across the system 2.) Assign those roles to the ARO table 3.) Then in my own separate tables store group information per organization that assigns users to those roles. Am I understanding this correctly? If so that makes for a v

Javascripthelper + Cake in a subfolder

2009-03-24 Thread wilderland
Hi, I'm new to CakePHP and I have some problems with JavascriptHelper. On my development machine (I installed XAMPP and CakePHP in a subdirectory), all standard CAKEPHP things work right. Structure Localhost (htdocs) - MyWeb - App - Cake - Vendors I want to add some Javascrip

Time Ranges

2009-03-24 Thread jsundquist
I have a form that has two time fields. I am looking to find out if it is possible to specify that the field only contains time from say 9am until 9pm instead of a full 24 hour period? Is this even possible. Looking in Trac there is a ticket in there for minimum and maximum dates but nothing as f

Re: label into form->input

2009-03-24 Thread jsundquist
You could also just do a text('MyModel.field'); ?> if you just need a text field. Otherwise the above example of doing 'label'=> false will work as well. On Mar 24, 8:45 am, Marcelo Andrade wrote: > On Tue, Mar 24, 2009 at 7:23 AM, kicaj wrote: > > > How create input like this: > > > >    some

Re: Javascripthelper + Cake in a subfolder

2009-03-24 Thread Alfredo Quiroga-Villamil
Under the js directory place extjs-xx. I think that's how you have it now. In your layout: link('ext-2.2/adapter/ext/ext-base'); ?> link('ext-2.2/ext-all-debug'); ?> link('ext-2.2/ext-all'); ?> Regards, Alfredo On Tue, Mar 24, 2009 at 11:23 AM, wilderland wrote: > >

Re: Time Ranges

2009-03-24 Thread mscdex
On Mar 24, 12:28 pm, jsundquist wrote: > I have a form that has two time fields.  I am looking to find out if > it is possible to specify that the field only contains time from say > 9am until 9pm instead of a full 24 hour period? Is this even possible. > Looking in Trac there is a ticket in ther

Re: Getting all functionality in "non architectural" requests

2009-03-24 Thread brian
> One problem I found with this is that using $html->url('js/someJS'); > will echo /pages/myView/js/someJS instead of /js/SomeJs $javascript->link('SomeJs'); Note that you don't include the js directory, nor the extension. If you hava a JS file in a subdirectory (eg. webroot/js/lib/some-other.js

Re: how to set current time for local computer

2009-03-24 Thread gsenas
Have you already found a solution for the DST problem? I was trying to solve the same issue when I found this: http://www.sortea2.com/blog/2008/11/zonas-horarias-y-php/ It describes almost the same scenario you talked about. I tried the solution and works great. The article is written in span

Re: Topics for blog posts

2009-03-24 Thread brian
I vote for ACL, if you're up to speed on that. I'm just dipping my toes into ACL right now and it's been a bit mind-numbing sorting through a bazillion articles on the subject, many of which I'm not even sure are still valid. If you feel like putting together an up-to-date post on that subject, I'

Re: Created & modified fields automatically populating in models

2009-03-24 Thread brian
Try datetime NOT NULL On Tue, Mar 24, 2009 at 6:24 AM, Turgs wrote: > > Hi > > My exact schema is: > > CREATE TABLE `users` ( >  `id` int(11) unsigned NOT NULL auto_increment, >  `email` varchar(255) NOT NULL, >  `password` varchar(50) NOT NULL, >  `affiliate_id` int(11) default NULL, >  `group_

Admin Routing with HTML Helper - Image Link Path Problem

2009-03-24 Thread JamesF
Hello all, I have an admin view set up at /view so in the browser it looks like (when logged in as admin): mysite.com/admin/view on this page is a thumbnail of one image with a link to another image. echo $html->link($html->image($thumbnail_url , array('alt' => 'Thumbnail')), '../img/'.$fulls

Join Tables in Cake

2009-03-24 Thread smithtrev...@googlemail.com
Hi, I have a database with a join table that connects 3 tables together to create one join table. This join table then connects to another join table. After baking the models, controllers and views, and trying to view in a browser, I get this error. When i try and view my manager view.

Re: Fatal error = blank page

2009-03-24 Thread brian
Have a look here: http://teknoid.wordpress.com/2008/08/29/dealing-with-errors-in-cakephp/ But, if you're running into fatal errors, you'd be wise to deal with that before setting your debug to 0. On Tue, Mar 24, 2009 at 7:41 AM, Henrik Gemal wrote: > > if I'm running debug=0 and get a: > "Fatal

Defining Custom Association Queries

2009-03-24 Thread George
I have two tables I want to link together, but the association is a bit more complicated than it normally would be. One of the tables (users) is built specifically for cake, another is a table from a read- only database (salespeople). User.username = Salespeople.email (or xxx in x...@site.com). U

Re: Admin Routing with HTML Helper - Image Link Path Problem

2009-03-24 Thread brian
On Tue, Mar 24, 2009 at 1:42 PM, JamesF wrote: > > Hello all, > > I have an admin view set up at /view > > so in the browser it looks like (when logged in as admin): > > mysite.com/admin/view > > on this page is a thumbnail of one image with a link to another > image. > > echo $html->link($html->

Re: Email body template in different place

2009-03-24 Thread brian
Just create separate views for each of them. Or, are you not using EmailComponent? On Tue, Mar 24, 2009 at 4:44 AM, RJ wrote: > > In my project i have to send mails for every activity and body content > differs for every activity. > I want to keep the mail body contents in separate files so that

Re: strange 404

2009-03-24 Thread brian
How does your form action look? Can you post your $form->create() line? It may be a problem with non-english inflection. And, there's no "missing controller" error? Weird. On Tue, Mar 24, 2009 at 10:15 AM, fain182 wrote: > > i have a really strange problem.. > > if I visit > http://localhost/di

Re: Building a helper; Fatal error cake/libs/view/view.php on line 702

2009-03-24 Thread brian
Interesting. It has nothing to do with your getPostions() method. If you're running the latest release, the error is in View::_loadHelpers(). It seems that the 2nd param is a string rather than an array. I know a Helper may have other helpers, and your syntax there looks fine. Might be a bug. Try

Re: strange 404

2009-03-24 Thread fain182
> How does your form action look? Can you post your $form->create() > line? It may be a problem with non-english inflection. $Materiale = ucfirst($materiale); echo $form->create($Materiale, array('action'=>'edit','type' =>'file'));?> $Materiale is the name of the controller with first letter cap

Re: Admin Routing with HTML Helper - Image Link Path Problem

2009-03-24 Thread JamesF
well i didn't think of using plain old html and i have tested that approach and it DOES work. BUT.if I am using a thumbnail image to link to another image, I have to make sure to update the paths in my view if i ever change my webroot. seeing as how this is on a dev box in a subdirectory, it

Re: Time Ranges

2009-03-24 Thread jsundquist
I'm not sure that work work within cake though. Unless it was added as a helper to extend the form helper. Im not sure though. I will keep that in mind. On Mar 24, 1:16 pm, mscdex wrote: > On Mar 24, 12:28 pm, jsundquist wrote: > > > I have a form that has two time fields.  I am looking to find

Re: strange 404

2009-03-24 Thread brian
OK, but what does the rendered HTML of the form opening tag look like? On Tue, Mar 24, 2009 at 3:26 PM, fain182 wrote: > >> How does your form action look? Can you post your $form->create() >> line? It may be a problem with non-english inflection. > > $Materiale = ucfirst($materiale); > echo $fo

Re: strange 404

2009-03-24 Thread fain182
> OK, but what does the rendered HTML of the form opening tag look like? here is the html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email t

Re: Created & modified fields automatically populating in models

2009-03-24 Thread Turgs
I just tried changing it to datetime NOT NULL, now the fields just fill up with -00-00 00:00:00. Changing it back to datetime NULL, and the fields remain with a NULL when a user is created. I've tried adding and removing the word "default" from the schema and it makes no difference. Cheers Tu

Re: Created & modified fields automatically populating in models

2009-03-24 Thread Miles J
Your tables should be InnoDB FYI, try switching them. --~--~-~--~~~---~--~~ 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, sen

Re: Sharing CAKEPHP Session with external app on a different virtual host

2009-03-24 Thread Krzysztof Chudzik
Maybe you should use memcached. see: http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/ On Mar 19, 1:07 pm, "marco.rizze...@gmail.com" wrote: > My question is this? > How can I sharing CAKEPHP Session with external app on a different > virtual host? > Many Thanks --~--

Re: Created & modified fields automatically populating in models

2009-03-24 Thread mscdex
On Mar 24, 4:38 pm, Miles J wrote: > Your tables should be InnoDB FYI, try switching them. It's not a requirement. I have a Cake project that utilizes a MyISAM DB and 'created' and 'modified' fields work fine. I have my 'created' and 'modified' fields default to NULL and Cake automatically fill

Model::afterFind being called on find('count')

2009-03-24 Thread Pablo Viojo
Can someone illuminate me about afterFind being called on find('count,..) I consider it's a mistake, because normally you would'nt do anything with it, or something completely different than an find all or find first. Thanks in advance! Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net (#2

Re: Sharing CAKEPHP Session with external app on a different virtual host

2009-03-24 Thread Pablo Viojo
Memcache or DB are the best options! Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felices! http://needish.com - http://helperman.org On Tue, Mar 24, 2009 at 6:02 PM, Krzysztof Chudzik <

Re: Join Tables in Cake

2009-03-24 Thread fain182
> -- > Missing Database Table > > Error: Database table seasons_teams for model SeasonsTeam was not > found. > -- > > But the thing is I don't have a table called seasons_teams in my > database? I have one called managers_seasons_teams, and it somehow > confused. Any ideas

Re: $ajax->observeField

2009-03-24 Thread logout
I am not so sure if this is the right way, but you can use another $ajax->submit button to call your function along with the submited data. Then in your action You will have access to the submited data in $this->data. But if You use the $ajax->link, then You can specify the parameters in the url l

Re: Join Tables in Cake

2009-03-24 Thread smithtrev...@googlemail.com
This is the model. I don't really want to change it to ignore the conventions. I'd rather sort the problem. array( 'className' => 'SeasonsTeam', 'joinTable' => 'managers_seasons_teams', 'foreignKey' => 'season_id',

Related models in scaffolding showing foreign key instead of displayField

2009-03-24 Thread Chris
New to Cake. When using scaffolding on a model, everything works perfectly. Except for the "related" display on a view page. It seems like for related models scaffolding only does a simple query instead of using joins to display the information. I am working on an app that organizes informatio

htaccess trouble

2009-03-24 Thread furionn
Hi all, Somebody can help me with .htaccess ? i have file structure: /var/www/ /site(cakephp) /forum What need to write in .htaccess to www.site.com/forum does not show an error ? P.S. Sorry for my bad english --~--~-~--~~~---~--~~ You recei

Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread furionn
>>IE: Select where AND `I18n__description`.`locale` = 'deu' >>FFx: Select where AND `I18n__description`.`locale` = 'de_de' first 2 symbols are same try >>IE: Select where AND `I18n__description`.`locale` = 'de%' >>FFx: Select where AND `I18n__description`.

Re: strange behavior of renderElement

2009-03-24 Thread furionn
>>Dr. Loboto Yes, i forget echo =) --~--~-~--~~~---~--~~ 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-p

Re: strange 404

2009-03-24 Thread the_woodsman
Could it be something to do with the security? How does that behave when it decides not to allow a submission? On Mar 24, 8:11 pm, fain182 wrote: > > OK, but what does the rendered HTML of the form opening tag look like? > > here is the html > > action="/dianadobreva/anfore/edit/31"> > >      

variable from one action view to another

2009-03-24 Thread kai
I have a foreach loop that runs through an array and for each object there's a report link that lets users report something wrong with that object. the report link draws a modal box that displays the report actions view and in that view i'm hoping to have the name of the object. I tried passing th

translate behaviour question

2009-03-24 Thread K3
I tried to use translate behaviour and when i switch from one lang to another i get records only created in that language. What i want to do is to have default language and use translate behaviour only to translate these records writen in default lang. i dont want to give the end user ability to c

Sub Controller

2009-03-24 Thread Ranju
Hello I want to create sub controller like create admin panel.within controller folder create admin folder then create admin controller. which type possible this. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Sub Controller

2009-03-24 Thread Graham Weldon
The only reasnon I can think you would want to so this is to either group functionality or to make your URL's look pretty. In the case you at trying to group functionality, look into creating plugins for your controllers. If you are simply trying to control URL presentation, then you need to

Re: Release: 1.2.2.8120

2009-03-24 Thread Dardo Sordi Bogado
> I know this is a noob question, but its driving me crazy. How do I > grab just the 1.3 branch from the Git repo on Chaw? I used to work > with SVN just fine to develop against nightlies of 1.2.x.x - but > moving 1.3 to Git is seriously hampering my workflow. Could someone > point me in the right

Re: Release: 1.2.2.8120

2009-03-24 Thread Dardo Sordi Bogado
But you can try a shallow clone... On Tue, Mar 24, 2009 at 10:33 PM, Dardo Sordi Bogado wrote: >> I know this is a noob question, but its driving me crazy. How do I >> grab just the 1.3 branch from the Git repo on Chaw? I used to work >> with SVN just fine to develop against nightlies of 1.2.x.x

Tutorial on User control and ACL

2009-03-24 Thread rocket
Hello I'm moving from 1.1 to 1.2 and want to set up a whole user registration system using ACL. I went through the tutorial, but am very interested in seeing a "proper" implementation of user control instead of coming up with a naive implementation. Does anyone have any suggestions at source to lo

FormHelper - Setting Option Value in Select Dropdown

2009-03-24 Thread JamesF
hello, I am trying to generate a select dropdown from an array, $types. Very easy to do but i need the part to read something other than the key value of the array $types. i.e. 0,1,2,3. $types -- Array ( [0] => test data [1] => test data ) echo $form->select('option_field_lab

$ajax->observeForm() result auslesen?

2009-03-24 Thread Aurelius
Hi! I have this Form Observer: $options = array( 'url' => array('controller'=>'users','action'=>'edit', $user['users'] ['id'].'.json'), 'before' => 'startLoading()', 'complete' => 'endLoading()', 'failure' => 'failure()', 'frequency' => '0.2', 'cond

Re: What do you develop in (ide, text editor, etc.)?

2009-03-24 Thread nurvzy
I know its rather late, but I've been searching for an IDE/text editor to settle on for a while now and this thread came in very handy. I used Notepad++ exclusively for the longest time until I had to develop exclusively on a linux box at work. WINE+Notepad++ worked for a while, but there were

Re: FormHelper - Setting Option Value in Select Dropdown

2009-03-24 Thread brian
I don't know that you do that easily. Why not just create the select list manually instead of using the helper? On Tue, Mar 24, 2009 at 8:24 PM, JamesF wrote: > > hello, > > I am trying to  generate a select dropdown from an array, $types. Very > easy to do but i need the part to read something

Re: What do you develop in (ide, text editor, etc.)?

2009-03-24 Thread Jon Molesa
Power to the vi. *On Sat, Feb 28, 2009 at 12:14:35PM -0800 adam wrote: > Date: Sat, 28 Feb 2009 12:14:35 -0800 (PST) > From: adam > Subject: What do you develop in (ide, text editor, etc.)? > To: CakePHP > > > I'm using Eclipse with PDT, but Dreamweaver for making layouts. > -- Jon Moles

Re: FormHelper - Setting Option Value in Select Dropdown

2009-03-24 Thread mscdex
On Mar 24, 8:24 pm, JamesF wrote: > echo $form->select('option_field_label', $types, null, null); > > will yield this output: > > test data > test data b > > I want: > > test data > test data b How about: $types = array_combine($types, $types); --~--~-~--~~~---~--~---

Re: FormHelper - Setting Option Value in Select Dropdown

2009-03-24 Thread Matt Curry
Just set the keys to be the same as the values: $types = array_combine($types, $types); -Matt http://www.pseudocoder.com On Mar 24, 11:20 pm, brian wrote: > I don't know that you do that easily. Why not just create the select > list manually instead of using the helper? > > On Tue, Mar 24, 200

Re: Model::afterFind being called on find('count')

2009-03-24 Thread mscdex
On Mar 24, 6:36 pm, Pablo Viojo wrote: > Can someone illuminate me about afterFind being called on find('count,..) > I consider it's a mistake, because normally you would'nt do anything with > it, or something completely different than an find all or find first. I know it's not really an explana

Re: What do you develop in (ide, text editor, etc.)?

2009-03-24 Thread brian
Ha! This post just made me smile. First, because I was literally just about to dig it up in order to get some editor ideas because my usual one has crapped out on me today and I've given up (for now) trying to deal with it. Secondly, because that editor is jEdit. Don't get me wrong--I've been usin

Re: What do you develop in (ide, text editor, etc.)?

2009-03-24 Thread Lance Willett
> a tutu and go go boots By which you mean TextMate, right? ;) I use TextMate with Samuel DeVore's excellent CakePHP bundle. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, se

Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread artoros
I would, but this is part of a automatically generated SQL statement from Cake, so I can not change it. Ok, I guess, this "auto detection" does not work right. As soon as I set the language manually (for example in core.php with Configure::write('Config.language', 'eng');) it does work. Ok, bette