Re: how to reduce the lenght of textbox

2009-11-11 Thread John Andersen
You can control the visible length of the input textbox using CSS. You can apply a maximum length to the content in the textbox using the HTML attribute MAXLENGTH. So add the attribute 'maxlength' => 12 to your form input statement in add.ctp. You should still apply validation to the input when s

how to reduce the lenght of textbox

2009-11-11 Thread Jiran Simon
Hii, In my program there is a field with data type VARCHAR(). In add.ctp it shows very lenghty. I need the lenght of textbox maximum upto 12 character. How I can reduce the length of the text field ? regards, jiru -- You received this message because you are subscribed to the Google Groups "C

Re: Debug >= 2 changes the response context type

2009-11-11 Thread jason m
when using ajax i always set the debug to 0 before rendering the view. You can do that in the controller by doing Configure::write('debug', 0). That will only set the debug temporarily so it should solve your problem. On Nov 12, 6:38 am, Alberto Dominguez wrote: > Hi, > > I'm using CakePHP to gen

Re: Upload a file using cakePHP

2009-11-11 Thread Ashu
Reading your link I noticed On a successful upload, the $data variable will be a populated array with the values for the uploaded files filesize, name, extension, mime group, destination path, upload time and width/height (if an image). You can use this data to output text on the frontend, or sav

Re: how to insert data?

2009-11-11 Thread jburns
Have you baked your models/views/controllers? If you have, it should be working fine. If not and you want to create them by hand, then you will need to create a view called add.ctp that includes the $form- >create(), $form->input() and $form->end() functions. Your controller will need a correspondi

how to insert data?

2009-11-11 Thread ChiCake
I have experience of Codeignitor, but rite now i am learning cake, can you please tell how to insert data in cake? i have just go through the example give in this group but still not getting -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: The page is not redirecting properly

2009-11-11 Thread Scott Dahl
Can you post your isAuthorized method? Also, you shouldn't need that method in every controller just in app_controller.php...the rest will inherit it automagically. On Wed, Nov 11, 2009 at 3:42 PM, MaNuM wrote: > Hi all. > > I have a problem in my application when I try to access some pages > (

Re: Debug >= 2 changes the response context type

2009-11-11 Thread Scott Dahl
CakePHP dumps out a table of data when debug level is set to 2...this obviously won't be valid JSON. Not sure why the headers would change though. On Wed, Nov 11, 2009 at 1:38 PM, Alberto Dominguez < alberto.doming...@egresados.uniandes.edu.co> wrote: > Hi, > > I'm using CakePHP to generate JSON

The page is not redirecting properly

2009-11-11 Thread MaNuM
Hi all. I have a problem in my application when I try to access some pages (belonging to not allowed actions group) and user is not logged in, the browser shows this message. The page is not redirecting properly I have the isAuthorized method redefined in every controller.. I don't know the caus

Partial transaction rollback when performing multiple saveAll() calls within a single transaction

2009-11-11 Thread bigbakedbean
I've sought help in #cakephp, and the consensus reached seems to be that I might have stumbled upon a bug with saveAll, though I'm still not convinced I'm not missing something simple. Here's the basics: Models: Model1 hasMany Model2 Model3 hasAndBelongsToMany Model1 Model3 hasMany Model4 Data: s

new view files generated?

2009-11-11 Thread Ahmed
After using bake all to bake my entities, i noticed that there are additional view files. For example, in the users view folder i have the files: add.ctp, edit.ctp, view.ctp, index.ctp, userscontroller.ctp. I am not sure what the file "userscontroller.ctp" is for and why it was generated. The file

Debug >= 2 changes the response context type

2009-11-11 Thread Alberto Dominguez
Hi, I'm using CakePHP to generate JSON responses. I'm also using FirePHP to debug and log the application execution. It works pretty well, however when I set the DEBUG level to 2 o higher -i.e. when I need to monitor the DB query executions- it suddenly changes the response header content type to

Re: Trouble getting relationship information in my view

2009-11-11 Thread death.au
If anyone's interested, it turns out it WAS a really noobish problem. I had the filenames for my models plural instead of singular (Category model was in categories.php) and that just threw everything off. Filenames are singular now (category.php) and it's all good. On Nov 11, 3:51 pm, "death.au"

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Marcelo Andrade
On Tue, Nov 10, 2009 at 8:33 PM, Larry E. Masters aka PhpNut wrote: > CakePHP Questions http://cakeqs.org has just come out of beta testing and > registration is open to all users of CakePHP. This is the first step in > unifying the community applications that are currently available. We will > co

Authake question

2009-11-11 Thread appel268576
Anybody out there used authake acl user management plugin before. I installed this the other day onto an existing app that I am using. Even when changing some of the rules don't affect the outcome. I have a standard post model built in the with the plugin and then as soon as I want to go into th

Re: Re-usable registration and login plugin?

2009-11-11 Thread Al
Thanks AD7six, I'll look into trying this approach. On Nov 11, 8:57 am, AD7six wrote: > On 11 nov, 02:06, Al wrote: > > > Hi All, > > > I've used Auth on several applications and have learned a lot in how > > to (and not to) create a user registration/login/password reset > > system. but.. >

Re: Re-usable registration and login plugin?

2009-11-11 Thread gimmebucks
I'm looking for it too.. On Nov 11, 9:06 am, Al wrote: > Hi All, > > I've used Auth on several applications and have learned a lot in how > to (and not to) create a user registration/login/password reset > system. but.. > > Can anyone tell me if there is an already created cakephp plugin for

Re: Share hosting experience

2009-11-11 Thread gabrielr
Thanks everyone for the advices!!! -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. For more options,

How to find which combination Clubs is being used by Children?

2009-11-11 Thread fly2279
Child hasMany Membership Membership belongTo Child, Club Club hasMany Membership Basically Child HABTM Club with the Membership being the join table, like at the bottom of this section: http://book.cakephp.org/view/85/Saving-Related-Model-Data-HABTM How do I find all the combinations of Membersh

very basic: getting "index of" before index.php loads

2009-11-11 Thread jeff
hello. i have read the golding book and got cake installed. when i point my browser to the root directory of my app http://localhost/myapp it shows me the list of files instead of loading index.php: Index of /myapp Parent Directory README app/ cake/ index.php nbproject/ vendors/ then, when i t

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Graham Weldon
We're planning to add this to the top links on the other Cake Software Foundation websites to ensure everyone is able to reach the site. This should be happening very soon. Thanks for the positive feedback :-) Cheers, Graham Weldon e. gra...@grahamweldon.com w. http://grahamweldon.com On 12/

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Graham Weldon
Thanks for that. We're aware of the issue with some people not being sent out emails from the site. For the moment, if you can email me directly, I can sort out getting your account enabled. This is a DNS issue that we have made steps to resolve, and we should see this issue resolved very so

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Dewayne Pinion
Apparently someone is messing with their htaccess file... On Wed, Nov 11, 2009 at 8:58 AM, Crazy wrote: > Will this site be mentioned on cakephp.org? > > Looks like the members are growing, and I really like the way it > works. > > Personally I would like that site better then the google groups.

Re: Merging CakeBook and Bakery Source Code

2009-11-11 Thread AD7six
On 10 nov, 15:52, WebbedIT wrote: > Firstly, forgive me for my limited knowledge of GIT and SVN. > > I am trying to create an online manual (cookbook) for a CakePHP > application I am developing.  After checking out the source code and > configuring my dbase I realised that I could also do with

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Crazy
Will this site be mentioned on cakephp.org? Looks like the members are growing, and I really like the way it works. Personally I would like that site better then the google groups. It's not that I hate the google groups, but they're just., google groups... They just don't have any usability.

Re: Re-usable registration and login plugin?

2009-11-11 Thread AD7six
On 11 nov, 02:06, Al wrote: > Hi All, > > I've used Auth on several applications and have learned a lot in how > to (and not to) create a user registration/login/password reset > system. but.. > > Can anyone tell me if there is an already created cakephp plugin for > doing this? I'm only ask

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread keymaster
Not sure where best to post this, but ... there needs to be a "Resend Verification Email" link on the new questions site or people whose verification email is lost in transit are up a creek with no paddle. On Nov 11, 2:44 pm, Graham Weldon wrote: > Cool :-) Lots of signups happening. Nice to se

Re: CakePHP Questions - Now out of beta!

2009-11-11 Thread Graham Weldon
Cool :-) Lots of signups happening. Nice to see. Cheers, Graham Weldon e. gra...@grahamweldon.com w. http://grahamweldon.com On Nov 11, 10:33 am, "Larry E. Masters aka PhpNut" wrote: > CakePHP Questionshttp://cakeqs.orghas just come out of beta testing and > registration is open to all users o

Re: null value from date field.

2009-11-11 Thread Marcelo Andrade
On Tue, Nov 10, 2009 at 8:09 AM, jiru wrote: > > Please give me the code for to check  date field is null or not. ? http://book.cakephp.org/view/74/Complex-Find-Conditions ''' Cake can also check for null fields. In this example, the query will return records where the post title is not null: a

Re: parseExtension question allows just a subset of extensions??

2009-11-11 Thread ark0n3
Figured out by myself.. You just have to add $this->RequestHandler->setContent('rtf', 'application/rtf'); in app_controller.php beforeFilter() On 11 Nov, 11:45, ark0n3 wrote: > Hi > I'm banging my head against the wall trying to figure out why CakePHP > does not parse the .rtf extension, after

Re: Timeout in Internet Explorer but no other browsers

2009-11-11 Thread Adrian
Hi Martin, Many thanks for the fast reply, I did read this post earlier and have since read up on star-schema and your CakePHP implementation. I am not hugely experienced with web development but have been doing it full time since I finished Uni in July and was never taught anything about denormal

parseExtension question allows just a subset of extensions??

2009-11-11 Thread ark0n3
Hi I'm banging my head against the wall trying to figure out why CakePHP does not parse the .rtf extension, after that I added the extension in Router::parseExtensions('json', 'xml', 'rtf', 'pdf'), /app/views/ layouts/rtf/default.ctp and /app/views/controllername/rtf/ action_name.ctp Please let m

Re: Problem related to Pagination and Binding

2009-11-11 Thread hunny
Hi Guys, I have found out where the problem is. The pagination function makes 2 calls. 1. First one for Page Count 2. Second one for Actual Records. My Page Count query is working fine. But 2nd Query is not working fine. This is because after the first call model relationships are reset. As ment

Re: Running Conditional If statements in the form

2009-11-11 Thread appel268576
Thanks for all the help. The easisest way I found it was just to run the following statement in the form if ($this->['Profile']['sex'] == 'Female') { echo $form->input('hips'); } On Nov 10, 9:20 pm, "Dave" wrote: > Another option is 2 forms. > > When you get the users info do an 'if' in the con

Re: Re-usable registration and login plugin?

2009-11-11 Thread j0n4s.h4rtm...@googlemail.com
In relation to this. I am also interested in general approaches into "modularity". Having user account management is one thing, profiles another, shouts a third, messaging is one and so on. On Nov 11, 2:06 am, Al wrote: > Hi All, > > I've used Auth on several applications and have learned a lot

Re: Play Audio in PHP

2009-11-11 Thread Abdul Rahman Riza
how about php-ffmpeg ..?? 2009/11/11 Pat > AFAIK - PHP doesn't actually play any media content itself. What it > can do is output the html that will inturn play media. The actual > loading and playing of the song files can be done by plugins (flash, > java applet, quicktime etc...) or even nativ

Re: Play Audio in PHP

2009-11-11 Thread Graham Weldon
Hey, I would use something like this: http://www.schillmania.com/projects/soundmanager2/ But as other have suggested, for easing your users experience, be minimal with sounds if you can. They are great for band sites.. and for audible notifications. Thats about it ;-) Cheers, Graham Weldon

Re: $uses not working in Shell

2009-11-11 Thread Crazy
Yes, that way it works, but according to the cookbook it should also work using the $uses. Link: http://book.cakephp.org/view/112/Tasks Example from the book: If I can I'd like to avoid doing the app::import. On 11 nov, 05:35, Mohsin kabir wrote: > you can add some model by importing those

Trouble getting relationship information in my view

2009-11-11 Thread death.au
I'm relatively new to cakePHP and am trying to set up a simple thesis review system in order to get my head around how it works. So keep in mind I've probably missed something very basic. For now, I'm just trying to display some information about a Thesis, including the author and category, which

Re: Play Audio in PHP

2009-11-11 Thread Pat
AFAIK - PHP doesn't actually play any media content itself. What it can do is output the html that will inturn play media. The actual loading and playing of the song files can be done by plugins (flash, java applet, quicktime etc...) or even natively in the broswer with HTML. Its probably beyond th

Re: Problem related to Pagination and Binding

2009-11-11 Thread hunny
Hi Guys, I have made some breakthrough using Containable in this. $this->paginate['Sales'] = array('contain' => 'Withdrawn', 'conditions' => array('Sales.property_id = Withdrawn.property_id') ); It works fine upto here but in the following statement again it doesn't recognizes Withdrawn.property

Where should this code go?

2009-11-11 Thread jburns
I want to write some code that can be passed some variables, then reads data from a table (menus) and produces some html (one or more ULs) to display as a dynamic and context sensitive navigation bar. The ULs will most probably be displayed in an element as they will appear on every view. I'm not