If using the EmailComponent works in other parts of your controller,
and the "code excerpt" you provided was just manually entered into
your original email (the first two lines would have resulted in a
syntax error as it is written) you can try adding
$this->Email->return = "Mysitename ";
befor
Hello,
I am modifying baking template as per my need. How can I access model
fields collecting in controller.ctp ?
Currently I am using following code which is working properly but I
need more proper way.
var $filters = array(
'index' => array(
''
1.You can cover the state array to be an array of key=value
OR
2.Use the id to fetch the state name before saving.
On Mon, Aug 22, 2011 at 6:15 PM, arron wrote:
> that maybe true but i cant get that to work using the simple mail and
> wizard components. I dont necessarily need it to save to the
Hi all, my UI developer and I are interested to know if anyone has come
across an issue within the framework (making a facebook app under the
facebook php sdk + cake) where iframe apps has rather unstable results when
it comes to showing scrollbars.
We have everything set to fluid, and he is us
You need to specify which methods you need to mock for the components. For
instance, you could only mock the user() method on the AuthComponent, and
supply any return value for each of your calls on the method, in other to
test authorization on it.
$this->generate('MyController', array('compone
In order to test the result of the complete request cycle you need to use
the second parameter of testAction as follows :
$this->testAction(('/admin/posts/add', array('return' => false))
This way you will be able to assert headers, and text from the layout, the
other possible value for 'return'
I guess you'll need to upgrade to v 1.3 because it seems
Model::findQueryType is resetting before the afterFind method. (check this
link: http://groups.google.com/group/tickets-cakephp/msg/5ed5fd51805bd232)
or you can maybe do something like this:
var _tempFindQueryType;
function beforeFind()
{
I am using Cake 1.2. .
I put $this->findQueryType as debug output at the begin of the the afterFind
method and it showed me only "null" before I did anything in the method.
Anja
Am Montag, 22. August 2011, um 16:59:09 schrieb Teddy Zeenny:
> As Thomas said, $this->findQueryType should definite
Well, the default findQueryType for Controller::paginate() is 'all'.
Unless you set a different type in the paginate options array, you
should get 'all' as the findQueryType. If you want to set a different
findType to paginate, use:
$this->paginate[0] = 'yourCustomFindType'; // or
$this->pagin
that maybe true but i cant get that to work using the simple mail and
wizard components. I dont necessarily need it to save to the database
but just be able to send the name for the state as a email instead of
a number
On Aug 17, 2:08 am, WebbedIT wrote:
> I know Irun the risk of preaching to the
I use the pagination, but there is quite a weird condition in the query:
Here is the query going to the database:
SELECT `Article`.`id`, `Article`.`author_id`, `Article`.`cat_id`,
`Article`.`last_comment_id`, `Article`.`title`, `Article`.`teaser`,
`Article`.`created`, `Article`.`published`,
`
As Thomas said, $this->findQueryType should definitely work in the
afterFind().
Which version of cakephp are you using ?
Can you show us the afterFind code ?
On Mon, Aug 22, 2011 at 5:55 PM, Anja Liebermann <
anja.lieberm...@platinnetz.de> wrote:
> But I need the value IN the afterFind method. N
But I need the value IN the afterFind method. Not before or after.
Well I do the checks now in the index and view methods of the controller.
Anja
Am 22.08.2011 16:39, schrieb Thomas Ploch:
The findQueryType is reset before afterFind() is executed. So assigning
the value to a class var in befor
Woops, actually Model::findQueryType is __not__ reset before afterFind()
is triggered. You should normally be able to check for
Model::findQueryType in the afterFind() Callback.
Are you using custom find types?
Regards,
Thomas
Am 22.08.2011 16:33, schrieb Anja Liebermann:
did that. It is alw
The findQueryType is reset before afterFind() is executed. So assigning
the value to a class var in beforeFind() and reading it in afterFind()
should work.
:-)
Am 22.08.2011 16:33, schrieb Anja Liebermann:
did that. It is always NULL :(
Anja
Am 22.08.2011 16:25, schrieb Thomas Ploch:
Look
did that. It is always NULL :(
Anja
Am 22.08.2011 16:25, schrieb Thomas Ploch:
Look at Model::findQueryType :-)
Am 22.08.2011 15:56, schrieb Anja Liebermann:
Hello,
is there a possibility to know which query type ( first, all, count
etc...) was used, when I call afterFind()?
Depending on t
Look at Model::findQueryType :-)
Am 22.08.2011 15:56, schrieb Anja Liebermann:
Hello,
is there a possibility to know which query type ( first, all, count
etc...) was used, when I call afterFind()?
Depending on the query Type I would like to make different checks.
If it is not possible, the
Hello,
is there a possibility to know which query type ( first, all, count
etc...) was used, when I call afterFind()?
Depending on the query Type I would like to make different checks.
If it is not possible, then I have to do it in the controller in several
actions.
As always: Thanks in
Thanks for the replies guys but I still don't know how I go about
making them safe. What would I need to do?
thanks
On Aug 20, 6:03 pm, WebbedIT wrote:
> On Aug 19, 3:08 pm, Ryan Schmidt wrote:
>
> > Hopefully your database server is only accessible from your web server,
> > whereas PayPal is
no dude... other mail functions from this controller are working fine
On Mon, Aug 22, 2011 at 2:05 PM, abhimanyu bv wrote:
> maybe you have forgot to configure smtp settings in your cakephp.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out t
tnx :D
On Mon, Aug 22, 2011 at 12:30 PM, O.J. Tibi wrote:
> Or you can those fields that you want to add/remove by JavaScript in
> `$this->Security->disabledFields` as suggested by WebbedIT. :)
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check o
I'm having tough time with this configuration, I followed the one on the
CakePHP's book and just did a copy paste, the site just load the IIS default
page with the web.config. Is there a way to fix this without using any URL
Rewriting?
Thanks.
Regards,
Jerome
On Mon, Aug 22, 2011 at 3:21 AM, Til
What am I doing wrong? It must be something. Keep in mind this is all
> I have in the .htaccess files. There is nothing else as I started with
> blank text pages. Any direction would be greatly appreciated.
>
>
> Sometimes when u give write permission to folder .. it will show 500
internal server
I am currently using 1&1 shared hosting for a website with cake and it is
running perfectly.
First thing you have to do is *let the URL point to the applications webroot
directory.*
Then modify you .htaccess file in the webroot directory to:
RewriteEngine On
RewriteCond %{REQUEST_FILENAM
hi!
Am Sonntag, den 21.08.2011, 15:14 -0700 schrieb Seth Barrett:
> When I add that I get error 500 page.
what is logged in the webserver's error log?
bye,
Sebastian
>>Am Freitag, den 19.08.2011, 05:26 -0700 schrieb Seth Barrett:
>>[...]
>>> Root .htaccess -
>>>
>>> AddType x-mapp-php5 .p
maybe you have forgot to configure smtp settings in your cakephp.
--
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
The best way is to fix that warnings and notices. Good app never
throws this kind of shit.
On 18 авг, 20:18, p r wrote:
> yes the Requesthandler is in use and the debug level is set correctly
> to 0 but errors and notices doesn't care.
> It seems the backtrace is added before the debug level is s
Or you can those fields that you want to add/remove by JavaScript in
`$this->Security->disabledFields` as suggested by WebbedIT. :)
--
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 other
Hi 3p3r,
Yes, you can safely add/remove fields in the form BUT only if you set
`$this->Security->validatePost = false` on top of the action that will
receive your form data.
Cheers,
OJ
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new Cake
Hi,
I know I should not take your time on this. If you are free, please kindly
help me by checking my sites security.
I just wanted to do it as a open source.
The source code is free download.
If you found any problem, please mail me at prabha.riddles at gmail dot com
http://www.agrizlive.com
I using cakephp email component. In my live server $this->Email-
>send() return success. but mail is not receiving. what is the
problem?? i need to find whats the error ?
$this->Email->from = Mysitename ;
$this->Email->to = sam...@gmail.com
$this->Email->subject
Thanks a lot! this worked! thanks. by the way, just ask'in, is it safe to
remove those fields via javascript in clientside?
On Mon, Aug 22, 2011 at 11:00 AM, WebbedIT wrote:
> Do you have any fields added or removed from this form after the page
> is rendered?
>
> If so, this will invalidate the
In the updateAll() section of the CakePHP Book (http://
book.cakephp.org/view/1031/Saving-Your-Data) has the following
information box:
The $fields array accepts SQL expressions. Literal values should be
quoted manually.
It's a bit terse, but basically it's saying that if you want to update
a fie
33 matches
Mail list logo