can i have two login?

2011-11-28 Thread Mamdoohi
hi i create my website like joomla so i want two login for admin and registered user? with this i can where change in admin then see that in site. can i do it? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://a

Re: CakeEmail & Invalid email

2011-11-28 Thread localhost
Thank you very much for the suggestion but really I don't have this option I just need to disable the email validation in cakemail On Nov 29, 1:29 am, Justin Edwards wrote: > I would rather fix your exchange rules to follow a standard.  Microsoft > could fix their product (stop allowing invalid

Re: How to add a fixture to a plugin test?

2011-11-28 Thread José Lorenzo
this should just work, what error are you getting? -- 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 em

Re: CakePHP 2.0 - Testing InnoDB transactions while using schema importing - is this possible?

2011-11-28 Thread José Lorenzo
The only way you can override that using schema importing is implemeting the create() funciton in your fixture: class MyFixture extends CakeTestFixture function create($db) { $this->fields['tableParameters']['engine'] = 'InnoDB'; return parent::create($db) } -- Our newest site for the

Re: limiting the character length of text I show in the view

2011-11-28 Thread dreamingmind
or even more specific to the problem is the Text Helper's truncate(). Don On Nov 28, 7:43 am, Tomfox Wiranata wrote: > Hi, > > I am loading data in a div, that is often too short for the text > length... > so the text goes beyond my div... now I would like to limit the text > in my view. I guess

Own exception templates

2011-11-28 Thread euromark
in /app/View/Errors/ I created a file error403.ctp (I want to customize 403s) I thought this would override the core file (as with everything else). But then I read in the book that in debug mode the app files are used, in productive mode they will simply be ignored. I fail to see the point in th

Re: CakeEmail & Invalid email

2011-11-28 Thread Justin Edwards
I would rather fix your exchange rules to follow a standard. Microsoft could fix their product (stop allowing invalid addresses) and you could have problems in the future. On Mon, Nov 28, 2011 at 3:42 PM, localhost wrote: > Hi > > If you try to send email using CakeEmail in cakephp 2, CakeEmail

CakeEmail & Invalid email

2011-11-28 Thread localhost
Hi If you try to send email using CakeEmail in cakephp 2, CakeEmail will check the "To" email and give you error for invalid emails. my question is how to disable this validation, I actually want to send wrong email format :) I have my SMTP (MS Exchange) configured to forward any email with pred

Re: Vendor files from Plugin folder

2011-11-28 Thread Sam Sherlock
@millesj - if the class names are wierd/wild (or in subdir) import is easier //App::uses('Welcome', 'Plugin/Configuration/Vendor'); # does not work //App::import('Vendor', 'Configuration.Welcome'); # does work //App::import('Vendor', 'Configuration.Welcome', array('file' =

Re: Vendor files from Plugin folder

2011-11-28 Thread Miles J
I still just use import. App::import('Vendor', 'PluginName.ClassName'); Also, shouldn't the uses be: App::uses('ClassName', 'Plugin/PluginName/Vendor'); ? On Nov 28, 12:55 am, p r wrote: > have you tried this? In this case the classfile will not be found from > a subfolder. You can see that wi

Re: Data not binding in the view

2011-11-28 Thread Yves S. Garret
Never mind... lets just say this was modifying one file while looking at the output of another. On Mon, Nov 28, 2011 at 11:33 AM, Yves S. Garret wrote: > This is very odd. When I print out the contents of the table, the first > name and last name show up in the view. But the codes (3 of them)

Re: CakePHP 2.0.4 released

2011-11-28 Thread José Lorenzo
Sorry About the mixup, that was the announcement for 2.0.4. Here is the real one: The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.4 [1]. This release fixes an important security issue in the AuthComponent. Prior to this version, the AuthComponent will let no

Data not binding in the view

2011-11-28 Thread Yves S. Garret
This is very odd. When I print out the contents of the table, the first name and last name show up in the view. But the codes (3 of them) do not. On line 36 in the controller, if I print it out, all of the data is there. So is the provider variable not getting set correctly? On line 6 in the v

Re: Observer Pattern in CakePHP 2.0

2011-11-28 Thread amiable_indian
Thanks for your feedback. -- 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 cake-php+unsubscr

CakePHP 2.0.4 released

2011-11-28 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.3 [1]. A lot has happened in the PHP world since our last release, this new version incorporates all needed changes needed to adapt to the ever evolving world of PHP frameworks. One of the big changes out there

Re: limiting the character length of text I show in the view

2011-11-28 Thread Jeremy Burns | Class Outfit
If you know how many characters you need you can user the Text helper excerpt() method: http://book.cakephp.org/view/1469/Text Jeremy Burns Class Outfit http://www.classoutfit.com On 28 Nov 2011, at 15:43, Tomfox Wiranata wrote: > Hi, > > I am loading data in a div, that is often too short fo

limiting the character length of text I show in the view

2011-11-28 Thread Tomfox Wiranata
Hi, I am loading data in a div, that is often too short for the text length... so the text goes beyond my div... now I would like to limit the text in my view. I guess its a CSS thing??? example: I get: CakePHP is a great thing for building websites I want: CakePHP is a great thing... making a

Re: CAKEPHP, how to read txt file which is located in the vendor location

2011-11-28 Thread bharani kumar
let me try thanks On Mon, Nov 28, 2011 at 11:20 AM, Graham Weldon wrote: > > $filename = 'myfile.txt'; > $content = file_get_contents(VENDORS . $filename); > > > Cheers, > Graham Weldon > http://grahamweldon.com > e. gra...@grahamweldon.com > p. (+61) 0407 017 293 > Skype: grahamweldon > > On Su

CakePHP Media Plugin quality of image

2011-11-28 Thread byqsri
Hi I'm using Media Plugin of David Persson (https://github.com/ davidpersson/media) and it is very very useful. I would ask a question that I can't resolve. My question is that when I do a filtering (fitInside) of an upload image Configure::write('Media.filter.image', array(

Re: Updating application source without breaking sessions

2011-11-28 Thread Ernesto
oh i forgot to say i'm using "cake" session handler -- 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 e

Updating application source without breaking sessions

2011-11-28 Thread Ernesto
Hi all i have a multi-app, single-core environment. how can i update the source code without resetting sessions? a friend of mine told me to not overwrite the "tmp" folder. Is this enough? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new Ca

Re: Vendor files from Plugin folder

2011-11-28 Thread p r
have you tried this? In this case the classfile will not be found from a subfolder. You can see that with App::objects('PluginName.Vendor'). Is there a way to extend the plugin vendor pathes with App::build? So i add all my subfolders and your way should be fine. Currently i go this way...

Re: Auth component not returning user data on manual login (CakePHP 2.0.3)

2011-11-28 Thread Pratz_
Ah, that did the trick. Thanks! On Nov 28, 12:43 pm, elitalon wrote: > According to documentation (http://api20.cakephp.org/class/auth- > component#method-AuthComponentlogin) if you login a user with a custom > array, only the information in that array is populated in > AuthComponent. Thus, if yo