Just a test.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I guess it takes time before the post shows up.
On Monday, August 5, 2013 4:11:08 PM UTC-4, Wyatt Biker wrote:
Just a test.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the
I am having probs logging in to the cakephp site to post this, so thought I
would put it here to share
$this Is Slick http://this.is-slick.com
--
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
to
be handled by the server [3]). It could be particulary useful when
advanced rewriting rules are used.
- using array_pop(array_keys($_GET)) (or something equivalent) as
the primary path value in the CakeRequest::_url function
[1] :https://github.com/cakephp/cakephp/blob/master/app/webroot/.htaccess
]). It could be particulary useful when
advanced rewriting rules are used.
- using array_pop(array_keys($_GET)) (or something equivalent) as
the primary path value in the CakeRequest::_url function
[1] :https://github.com/cakephp/cakephp/blob/master/app/webroot/.htaccess#L5
[2] :https
)) (or something equivalent) as
the primary path value in the CakeRequest::_url function
[1] : https://github.com/cakephp/cakephp/blob/master/app/webroot/.htaccess#L5
[2] :
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Network/CakeRequest.php#L206
[3] : http://httpd.apache.org/docs/2.0/mod/core.html
I agree that there are better single query methods in pure SQL, but my
recommendation keeps it in a Cake stylee (rather than using $model-query). I'd
be happy to be put right, but even if you did it using joins in a Cake find, I
think it'd still execute two queries.
Jeremy Burns
Class Outfit
There is a cake way for creating subqueries!
See: http://book.cakephp.org/view/1030/Complex-Find-Conditions and scroll
down to the section Sub-queries.
There is an example how to build subqueries the cake way and get efficient
calls to the database.
I would suggest that you are trying to hit
Hello everyone,
I've been trying to work this out for the last couple of hours but it
isn't working.
I'm building an achievement system. So i have two tables:
Users_Badges and Badges (and ofc much more but they don't matter)
What i want is to make a find condition which only selects the badges
Do a find to get all the ids of the badges in the users_badges table. Then do
$this-Badge-find('all', array('conditions' = array('NOT' array('Badge.id' =
$badgeIds;
See http://book.cakephp.org/view/1030/Complex-Find-Conditions and search for
'NOT IN' on the page.
Jeremy Burns
Class Outfit
That worked, awesome!
Thanks so much Jeremy!
Dwayne
On 23 aug, 12:48, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
Do a find to get all the ids of the badges in the users_badges table. Then do
$this-Badge-find('all', array('conditions' = array('NOT' array('Badge.id'
=
although this will get quite slow with more and more ids and might
consume a lot of memory some day
depending on the size a subquery might some day be more suitable. but
until then this 2-query will work fine.
On 23 Aug., 13:44, Dwayne Hanekamp dwaynehanek...@gmail.com wrote:
That worked,
I'd try an outer join
On Tue, Aug 23, 2011 at 11:23 AM, euromark dereurom...@googlemail.comwrote:
although this will get quite slow with more and more ids and might
consume a lot of memory some day
depending on the size a subquery might some day be more suitable. but
until then this 2-query
maybe a recursion problem?
bake your app without scaffolding and manually set the recursion level
(or use containable behavior)
On 27 Jun., 19:53, Magician davis_justinmich...@yahoo.com wrote:
Hi. I am new to cake php and am in the middle of making a blog.
Right now, I am stuck on a section.
Hi. I am new to cake php and am in the middle of making a blog.
Right now, I am stuck on a section. I have created two tables. One
for my posts and the other for tags for said posts. The model and
controller files are as follows:
POSTS:
-model:
?php
class Post extends AppModel
{
var
On Thu, May 19, 2011 at 10:57 AM, Prakhar Alok prakhara...@gmail.comwrote:
Hi,
I have just started using cakephp. I was going through the tutorials
for building a blog and using auth component.
Lets say that I have added some users for the blog. Now I want to view
in view instead of id,
Hi,
I have just started using cakephp. I was going through the tutorials
for building a blog and using auth component.
Lets say that I have added some users for the blog. Now I want to view
any user. For this I have baked the Users model. The URL will be
something like /users/view/1 (say its
any user. For this I have baked the Users model. The URL will be
something like /users/view/1 (say its is is 1). What if I want the URL
to be transformed to the name of the user like /users/prakhar. Just
like when viewing any Facebook profile, for ex. mine is facebook.com/
prakhar.alok.
Help
I am having tough time trying to join two table which are not connected
directly. For example:
User hasOne Profile
User hasMany Post
I want to join Post and Profile (based on user_id which is common) and tried
doing couple of things but none worked.
* Firstly, I tried $hasOne in Post model
With the setup you have, wouldn't the profile come along for the ride
on your finds? I would expect to be able to get a returned array like
this:
array(
[0]
Post = post fields
User = user fields
Profile = profile fields
[1]
Post = post fields
User = user fields
Why would profile be related to a post? The relationship is the user.
On May 12, 9:09 am, dreamingmind dreamingmin...@gmail.com wrote:
With the setup you have, wouldn't the profile come along for the ride
on your finds? I would expect to be able to get a returned array like
this:
array(
[0]
Thanks! What you said works, but I was trying to avoid all those individual
queries (which would be equal to number of posts in this case) and generate
a single query like this...
SELECT Profile.country_code, COUNT(Post.id) as `post_count`
FROM
Post
JOIN Profile ON ( Post.user_id =
So you want to see the count of posts for each country and the country
data is stored in the Profile?
My instinct tells me you have the structure you need and that a single
$this-Post-find('all', array('your params here')) is going to return
the result you want once you dial in all the find
Hello,,
I'm having problem using modalBox. I have a work autocomplete in add
user script. But when i combined it using modalbox, it doesn't work.
If I access it normally, it worked. Can someone help?
##
autocomplete()
##
function
Hi Jeremy,
Thanks for the note : )
There was nothing wrong in the view. The proper data was never making it
from the controller to the view. The controller debug() did display the
array correct as you saw, but for some reason it was not being passed to the
view. I know my foreach loop and vars
And I probably had a typo when using set() : ) .. My mind was mud after the
5th hour on this!
--
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
It's always the most simple mistakes that have us searching for complex
issues for well over an hour, missing an s really did cause a headache (as
per your other thread) :(
On 15 February 2011 14:02, OldWest ja...@jasonwydro.com wrote:
And I probably had a typo when using set() : ) .. My mind
Hi Jeremy,
Company logo url is not echoed when using my containable as it stands: *
echo $plan['Plan']['PlanDetail']['Company']['company_logo_url'];* (with
non-containable native relationship find('all') works just fine -- data
echoes as expected).
*PlanDetail **belongsTo **Company *w/ foreign
I should note that *PlanType *is not working with the containable either. So
it seems the associated models of PlanDetail are causing an issue in the
view end cause the data IS in fact in the array. Maybe the array structure
output is bad? All I know is this is giving me a heck of a time trying
So the value is there in the array. I see you are echoing out
$plan['Plan']['PlanDetail']['Company']['company_logo_url'];, which doesn't
exist.
Assuming this variable is called $plan and you are not doing any for/foreach
loops, to echo that value out you'd start at the top and walk your way
Hi Jeremy,
I am using a foreach() to product records results, but I tried:
$plan[0]['PlanDetail']['Company']['company_logo_url'];
And as expected (and as you mentioned), (because its a loop) it did not
produce anything.
My earlier post was an error when I had the ['Plan']... as part of the
You have the data in the array, you just haven't found the right path. Working
your way into an array is easy if you do lots of debugging and take it a step
at a time.
So if your variable is coming into your method as $plan, are you doing a
foreach loop on it? Something like:
foreach ($plan
From trying various debugs, it appears when the containable is in use, NONE
of the PlanDetail associated models are even being called in. I ran a debug
on:
debug($plan);
from
foreach ($plans as $plan):
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
When I say called in meaning I am running the debug in the Plan view, so the
view file is not receiving the data.
--
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
It looks like an improperly closed parenthesis to me. This is the
array for the PlanDetail contain that you supplied:
'PlanDetail' =
array('fields' =
array('id',
'effective_date',
'expiration_date',
'active',
'name',
'plan_type_id',
That's not the problem. The array data is being pulled in as expected in my
debug() tests, but the numerical index seems to be screwing everything up!
Here is a sample debug record:
[136] = Array
(
[Plan] = Array
(
[id] = 341
I do something similar except I put of that contain monster array in the
model since I just find it cluttering to see that in the controller.
Another little trick I find depending on the number of fields in PlanDetail
you can simply enter the ones you do not want with
'fields' = array_diff
Krissy,
Thanks for the helpful insight : )
My mind was mud today working out the containable, and I made the error of
using find() and Paginate together thus all kinds of problems were cropping
up. I agree the model should be fat and the controller skinny.
--
Our newest site for the
Krissy,
Can you tell me what the Schema() method is called for in your example? I
only know of _schema() in the manual, but Im not sure its the same as what
you are using and cant find another reference to it.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
No - because he was then containing another Model. There was nothing wrong with
the statement. It was a parsing error inside the view.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 15 Feb 2011, at 00:02, Jamie wrote:
It looks like an improperly closed
Ok,
I make a repo to github. I named it Aktive Merchant ;)
The link is http://github.com/akDeveloper/Aktive-Merchant
Will add soon some wiki notes for development new gateways.
Please give your feedback.
Thanks
On Jul 16, 7:20 am, iamcam (Cameron Perry) mistercame...@gmail.com
wrote:
This
I 'll make a git repo in a few days so you can see the source code.
@iamcam The code is close to ruby code ( as php 5.2 allows ). Gateways
have standard public methods ( authorize, purchase, void etc ).
Every response is an Response class object. There is also Creditcard
class object, and
Very interested in this.
Please update this list when it's up.
Much appreciated.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to
This all sounds great!
I don't have much of have an opinion of what to do with the name
considering the most obvious combinations of PHP and Merchant have
already been used. I dunno, maybe Active PHP Merchant? I'm not the
most imaginative when it comes to naming.
I haven't used PHPUnit yet, but
Bharadwaj, That's the best I could come up with in the PHP world.
Unfortunately the PEAR packages look outdated, and the Kohana
component is for that framework - not sure how it would work as a
stand-alone. There are ports in other languages (python and Objective-
C), but that doesn't help us.
How closely are you following the original ruby version? I'd be
interested in helping out here and there once you put it on github (so
much better than google).
~Cameron
On Jul 9, 4:20 pm, Andreas andreas.kolla...@gmail.com wrote:
Hi,
I am currently developing a port of Active Merchant on
+1 for github
I am also interested in participating in development.
From a quick google search, there seems to be no similar framework in
php.
You may want to check this -
http://stackoverflow.com/questions/2768942/do-any-projects-exist-for-php-that-is-similar-to-activemerchant-for-ruby
-
Hi,
I am currently developing a port of Active Merchant on PHP.
I 've also add a few gateways for testing such as PaypalExpress, Hsbc,
Authorize.net(partial), Centinel 3D secure(partial), and
Eurobank(Greek bank).
I am planning to make a public repository on github or google project
hosting,
, 9:38 pm, Louie Miranda lmira...@gmail.com wrote:
Can I change $id on -read(null, $id) to $username or something?
The code at:http://bin.cakephp.org/view/700064814
Tries to change the id to username, but I am not sure if this is
the correct
one. I checked the api
, Louie Miranda lmira...@gmail.com wrote:
Can I change $id on -read(null, $id) to $username or something?
The code at:http://bin.cakephp.org/view/700064814
Tries to change the id to username, but I am not sure if this is the correct
one. I checked the api but, it seems it is not working
)))
On 7 Jul., 05:42, Sam s...@masterscommission360.com wrote:
Try -findByUsername($username)
On Jul 6, 9:38 pm, Louie Miranda lmira...@gmail.com wrote:
Can I change $id on -read(null, $id) to $username or something?
The code at:http://bin.cakephp.org/view/700064814
Tries
, Louie Miranda lmira...@gmail.com wrote:
Can I change $id on -read(null, $id) to $username or something?
The code at:http://bin.cakephp.org/view/700064814
Tries to change the id to username, but I am not sure if this is the
correct
one. I checked the api but, it seems
...@masterscommission360.com wrote:
Try -findByUsername($username)
On Jul 6, 9:38 pm, Louie Miranda lmira...@gmail.com wrote:
Can I change $id on -read(null, $id) to $username or something?
The code at:http://bin.cakephp.org/view/700064814
Tries to change the id
Interesting - I have come across ActiveMerchant when doing RoR
applications - but never thought about something similar mostly
because the API support of most payment gateways is pretty
straightforward using php...
On Jul 5, 11:51 pm, iamcam (Cameron Perry) mistercame...@gmail.com
wrote:
Has
- but never thought about something similar mostly
because the API support of most payment gateways is pretty
straightforward using php...
On Jul 5, 11:51 pm, iamcam (Cameron Perry) mistercame...@gmail.com
wrote:
Has anyone seen anything like ActiveMerchant on the PHP side? I
searched around a bit
Can I change $id on -read(null, $id) to $username or something?
The code at:
http://bin.cakephp.org/view/700064814
Tries to change the id to username, but I am not sure if this is the correct
one. I checked the api but, it seems it is not working. I am on 1.3.
The SQL is still finding the id
Try -findByUsername($username)
On Jul 6, 9:38 pm, Louie Miranda lmira...@gmail.com wrote:
Can I change $id on -read(null, $id) to $username or something?
The code at:http://bin.cakephp.org/view/700064814
Tries to change the id to username, but I am not sure if this is the correct
one. I
Has anyone seen anything like ActiveMerchant on the PHP side? I
searched around a bit but haven't seen anything.
I'm intrigued by the fact that it supports so many gateways out of the
box, and wonder if (a) anyone has already come up with a PHP
alternative, or (b) thinks it feasible to attempt a
Is there something(like a toolkit) to reveal unused variable or method
within model in cakephp?
Thanks!
Bryan
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google
On Apr 22, 11:47 pm, Ed Propsner crotchf...@gmail.com wrote:
Okay, dumb question ...
Can someone explain the difference between :
[code] $this-Html-something [/code]
and
[code] $html-something [/code]
OOP is a bit of a new road for me.
$html-something works fine most everywhere
Okay, dumb question ...
Can someone explain the difference between :
[code] $this-Html-something [/code]
and
[code] $html-something [/code]
OOP is a bit of a new road for me.
$html-something works fine most everywhere for me but for some reason
my custom helpers will only place nice
Hello,
i almost solved my problem, but there is still a little fault. In one
of my views i readout a database cell, with a text inside, e.g. 13.pdf
(13.pdf = document_name).
The little fault is, when i click on the text in the column (e.g.
13.pdf) a download-windows opens and the file i download
The basename function returns the filename with the suffix! Try to
change your code to:
[code]
$basename = basename($file);
$file_extension = substr(strrchr($basename,.),1);
$basename = basename($file, '.'.$file_extension);
...
$this-set('extension', strtolower($file_extension));
John
Hello,
thanks for your answer! :)
I've added your code.
Well, I found out, that my old code (same result with your code) also
works, but only with 3 of my 4 test-data-rows.
It works for '13.pdf', '288.pdf' and '3.pdf'. It fails for
'19.pdf' (result on click = 19.pdf.pdf) and i absolutely
John
Hello,
thanks for your answer! :)
I've added your code.
Well, I found out, that my old code (same result with your code) also
works, but only with 3 of my 4 test-data-rows.
It works for '13.pdf', '288.pdf' and '3.pdf'. It fails for
'19.pdf' (result on click = 19.pdf.pdf) and i absolutely
John
Hello,
thanks for your answer! :)
I've added your code.
Well, I found out, that my old code (same result with your code) also
works, but only with 3 of my 4 test-data-rows.
It works for '13.pdf', '288.pdf' and '3.pdf'. It fails for
'19.pdf' (result on click = 19.pdf.pdf) and i absolutely
I suggest you turn on debug and add some debug statements in between
your code, so you can see what the content of each variable is at
specific places. Debug is turned on in your core.php file in the
config directory.
Use debug statements:
debug($basename);
debug($file_extension);
and maybe some
portion of the
framework, probably something buried deep in the Core code that *can*
be used by us, but typically isn't.
What's that mean for you? You can still fall back on standard PHP
when necessary.
As for whether you can have a single controller that dynamically maps
to a different database
design. I have a pilot project to build a light version of something
like PhpMyAdmin.
Just trying to figure out how do I achieve this with this framework?
Can I have a generic controller to map dynamically to a different
database and a different table. And how do I achieve something
Greeting,
A traditional programmer who is starting to learn CakePHP and MVC
design. I have a pilot project to build a light version of something
like PhpMyAdmin.
Just trying to figure out how do I achieve this with this framework?
Can I have a generic controller to map dynamically
that works:
$html-link('sth', array('controller' = 'Accounts', 'action' =
'Manage', '?' = array('var1' = 'sth', 'var2' = 'sthelse')));
But that doesn't:
echo $form-create('Accounts', array('url' = array
('controller' = 'Accounts', 'action' = 'Manage', '?' = array('var1'
= 'sth', 'var2' =
I thought it was just a term that was meaning a finished project, but
the more I see I think it is actually some tool ?
php is not compiled so I'm thinking its not a compiler as such, bit of
a dumb question but it isnt really clear to a noob like me.
Check out the new CakePHP Questions site
Bake just gets you started really. If you follow the instructions in
the online guide you'll be able to create basic models, controllers
and views for the tables in your database. The results are pretty
good, but not what you'd want to go live with. If you are learning
your way around Cake it's a
Bake is sometimes used loosely to just mean develop with Cake but really
bake is a console tool for rapidly generating controllers, models, views, etc.
It's quite handy.
http://book.cakephp.org/view/113/Code-Generation-with-Bake
Check out the new CakePHP Questions site http://cakeqs.org and
CakePHP has a very nice console/shell scripting system. Cake Bake is
one of the core scripts.
Bake allows you to very quickly generate basic Models, Controllers and
Views for your app based on your database structure. It even setups
relationships for you (Assuming you are following the
But how can i use it in form url?
On Nov 25, 5:29 am, Dr. Loboto drlob...@gmail.com wrote:
All as you asked. And Cake properly encoded HTML entities as symbols
are restricted in source and must be represented in text as amp;
On Nov 24, 9:43 pm, Ragnis ragnis.ar...@gmail.com wrote:
When
print_r($_GET);
On Wed, Nov 25, 2009 at 8:46 AM, Ragnis ragnis.ar...@gmail.com wrote:
But how can i use it in form url?
On Nov 25, 5:29 am, Dr. Loboto drlob...@gmail.com wrote:
All as you asked. And Cake properly encoded HTML entities as symbols
are restricted in source and must be
Afaik internally HtmlHelper::link as well as Controller::redirect as
well as Form::create all use Router::url.
See:
http://book.cakephp.org/view/836/link
http://book.cakephp.org/view/842/url
http://book.cakephp.org/view/186/options-url
On Nov 25, 2:46 pm, Ragnis ragnis.ar...@gmail.com wrote:
When doing it like this:
array ('controller' = 'Accounts', 'action' = 'Manage', '?' = array
('var' = 'b73cr6xzr6z', 'var2' = 'somethingelse'))
then the result will be /Accounts/Manage/?
var=b73cr6xzr6zamp;var2=somethingelse
On Nov 24, 6:31 am, Dr. Loboto drlob...@gmail.com wrote:
You can set
All as you asked. And Cake properly encoded HTML entities as symbols
are restricted in source and must be represented in text as amp;
On Nov 24, 9:43 pm, Ragnis ragnis.ar...@gmail.com wrote:
When doing it like this:
array ('controller' = 'Accounts', 'action' = 'Manage', '?' = array
('var' =
I need them as GET variables.
My form is at /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse and
when i submit the form, the GET variables will be gone but i want them
to stay.
On Nov 22, 11:39 pm, Amit a...@amitvaria.com wrote:
Is there a reason you can't just include the vars in the form?
Something like this should work
echo $form-create('YourForm',array('url'=YOURURL . '?' .
$this-passedArgs));
On Mon, Nov 23, 2009 at 10:22 AM, Ragnis ragnis.ar...@gmail.com wrote:
I need them as GET variables.
My form is at /Accounts/Manage/?var=b73cr6xzr6zvar2=somethingelse and
when i
You can set form action as:
array ('controller' = 'Accounts', 'action' = 'Manage', '?' = array
('var' = 'b73cr6xzr6z', 'var2' = 'somethingelse'))
On Nov 23, 9:22 pm, Ragnis ragnis.ar...@gmail.com wrote:
I need them as GET variables.
My form is at
What is wrong with using Accounts/Manage/var:b73cr6xzr6z/
var2:somethingelse ?
It looks neater, and is just as easy to use from an application
perspective.
On Nov 22, 8:54 pm, Ragnis ragnis.ar...@gmail.com wrote:
So how can i do that?
And i don't want to use /Accounts/Manage/var:b73cr6xzr6z/
So how can i do that?
And i don't want to use /Accounts/Manage/var:b73cr6xzr6z/
var2:somethingelse
--
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
Is there a reason you can't just include the vars in the form?
$form-input('var', array('type'='hidden', 'value'= 'b73cr6xzr6z'));
On Nov 22, 12:54 pm, Ragnis ragnis.ar...@gmail.com wrote:
So how can i do that?
And i don't want to use /Accounts/Manage/var:b73cr6xzr6z/
var2:somethingelse
--
I have two tables, both very simple.
Desks:
id, name
Question_Tallies
id, created, desk_id, question_type_id
I'm trying to get the id, and created fields that are associated with
a single desk id. My query code is below:
$this-QuestionTally-contain('Desk.id = '.$desk_id);
$thisWeek =
seehttp://book.cakephp.org/view/395/autoRedirect
regards,
AD
oh much thanks.
i wonder why I never saw that.
But now it works, wonderful
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To
UsersController:
// this is the stripped-down version
public function login()
{
if ($user = $this-Auth-user())
{
$this-User-Login-create();
$this-User-Login-save(
array(
'Login' =
On Jun 21, 7:15 pm, u2ix demian.gempe...@gmail.com wrote:
UsersController:
// this is the stripped-down version
public function login()
{
if ($user = $this-Auth-user())
{
$this-User-Login-create();
$this-User-Login-save(
Hello
I want to update a field in database (loginCount) after successful
login.
But I found now way where to insert this action, without to make a
redirect, as a callback or similar.
If I insert it in Users/login it will only be executed on getting the
login page, as I see?
How can I do this?
it will only be executed on getting the
login page, as I see?
You should be able to do this inside login(). Can you post your code?
I'm doing something similar, except that the logins are saved to a
separate table. This way, I can keep a record of dates/times.
CREATE TABLE IF NOT EXISTS logins
asks
for confirmation (by a POST form) before it does the actual delete.
Something like:
function delete($id) {
$model = $this-modelClass;
if (!empty($this-data)) {
$this-{$model)-del($this-data[$model]['id'];
// redirect to the index page
$this-redirect
Hello :)
is there any behavior that asks Are you sure before deleting any
record?
i can't find anything similar in the bakery
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group,
I think I may be misunderstanding, but if you use $html-link to
generate your delete url you can add this as a parameter:
link(string $title, mixed $url = null, array $htmlAttributes = array
(), string $confirmMessage = false, boolean $escapeTitle = true)
See the liink method here :
that works great!
thanks :D
On 5 Giu, 11:04, toby1kenobi toby.math...@gmail.com wrote:
I think I may be misunderstanding, but if you use $html-link to
generate your delete url you can add this as a parameter:
link(string $title, mixed $url = null, array $htmlAttributes = array
(), string
available to all your controllers) which asks
for confirmation (by a POST form) before it does the actual delete.
Something like:
function delete($id) {
$model = $this-modelClass;
if (!empty($this-data)) {
$this-{$model)-del($this-data[$model]['id'];
// redirect
help if your site is being
spidered...
A better approach is to create your own delete($id) method
AppController (so its available to all your controllers) which asks
for confirmation (by a POST form) before it does the actual delete.
Something like:
function delete($id) {
$model
something to the view. I use
setFlash for this. But it only shows me the message from the last
setFlash call. Is there a way to append something to the existing value?
Thanks a lot.
Roman
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi,
short question. I call different methods of a controller on one page
request. Most of the functions should write something to the view. I use
setFlash for this. But it only shows me the message from the last
setFlash call. Is there a way to append something to the existing value?
Thanks
1 - 100 of 279 matches
Mail list logo