Hi does anyone knows how to execute a store procedure, all I get is empty
result
here is my code...
in my model..
public function procedure()
{
$result = $this->query("CALL ReporteEjesLineas(2013,1);");
return $result;
}
in my controller
public function admin_reportebarras($anio = null
I will not set up a production environment with a release candidate, even
if it is at the second step (then really near to a stable)!
Il giorno venerdì 25 gennaio 2013 05:32:33 UTC+1, anjith ha scritto:
>
> Hi,
>
> New to cakephp. Just about to start development of new project using
> cakephp.
I'm creating a RESTful webservice, right now I'm facing the insertion of
the new resource (the Seasonresource). This is the body of the POST request:
new title
and this is the controller that effectively perform the insertion:
public function add() {
// i feel shame for thi
I have the players table with three field id, first_name, last_name. The
PlayersController have method index that show every player in the table:
public function index() {
$output = $this->Player->find('all');
$this->set(array(
'output' => $output,
'_seria
I have a database table called seasons:
CREATE TABLE IF NOT EXISTS `seasons` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(250) NOT NULL COMMENT
`year` year(4) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `title` (`title`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1
My method is something like
public function getSomething($id)
$sql = "SELECT ... WHERE id =".$id;
return $this->Model->query($sql);
}
How should I use your tips?
Il giorno venerdì 31 agosto 2012 05:11:34 UTC+2, Dr. Tarique Sani ha
scritto:
>
> Using prepared statements via the fetchAll m
I have a really complex query, so much table (and... so much nested model).
I feel more comfortable, using raw SQL query rather than cakePHP query
syntax.
As far as I know, I should prefear cake syntax, cause it is almost immune
to attack.
There's a way to join the security of cake approach w
I have just one "problem". I used Page, cause I need no action, matter of
fact, i'm using default action (i.e. display) I should ovverride the
default display() and change on my need. It's possible? How could change it.
Il giorno lunedì 27 agosto 2012 20:18:04 UTC+2, cricket ha scritto:
>
> And
I've a page (i.e. under Pages directory) called dettaglio_regione.ctp. I
want to set URLs like http://.../clienti/[[regione]], so a working URL
should be something like http://.../clienti/Campania
or http://.../clienti/Sicilia and so on.
I need to grab the content of [[regione]]. How I've to set
I have this model:
public function getPeopleByName($name){
> $this->unbindModel(array('hasMany' => array('OfficePersonTask')));
>
> $options['fields'] = array("Person.id", "Person.full_name");
> $options['conditions'] = array("UPPER(CONCAT(Person.last_name, '
emove comment from conditions row all that I get is:
> {
> "Offices": [
> {
> "Person": {
> "id": "5",
> "full_name": "John Doe"
>
I have this function write in a CakePHP model:
public function getPeopleByName($name){
> $this->unbindModel(array('hasMany' =>
> array('OfficePersonTask')));
>
> $options['fields'] = array("Person.id",
> "CONCAT(Person.first_name, ' ', Person.last_name) A
In CakePHP 2.1 I have prepared a Json webservice. This is an excerpt of
what I get:
{
>Offices:[
> {
> Office:{
> id:"1",
> Company:{
>id:"1",
>name:"ABC Software"
> }
>
I have this json:
{
- Offices:
[
-
{
- Office:
{
- *address*: "JR street"
- Company:
-
{
- id: "3",
- name: "ABC Software"
},
},
- Person:
d
> http://book.cakephp.org/2.0/en/views/json-and-xml-views.html
>
> The consumer applications are developed 100% independent of the
> original CakePHP websevice providing app
>
> Tarique
>
> On Mon, Jul 30, 2012 at 5:40 PM, Mariano C.
> wrote:
> > One of th
One of the rules for reusable code is: Develop your application like
webservice.
So I don't want to strictly bind controller with view. My idea is:
- controllers just returns json info (just like a webservice does),
- views calls that webservices, get the json and make html output.
t;
>>
>> =========
>> *Walter Raponi*
>> Din S.r.l.
>> Via Donato Menichella 304
>> 00156 Roma - Italy
>>
>> Tel 0641227662
>> Fax 0641227664
>> w.rap...@ritoll.it
>>
>> Il giorno 29/lug/2012, alle ore 19:01,
Yes I've read that message, but I don't understand what it means. Why I get
that error only in json and xml output and not in a normal view?
Il giorno domenica 29 luglio 2012 18:35:37 UTC+2, rchavik ha scritto:
>
>
>
> On Sunday, July 29, 2012 10:35:23 PM U
Yes. I've read. But what cause that errror? What that error really means?
Il giorno domenica 29 luglio 2012 18:35:37 UTC+2, rchavik ha scritto:
>
>
>
> On Sunday, July 29, 2012 10:35:23 PM UTC+7, Mariano C. wrote:
>>
>> Nothing change, I got the same error. :(
&
Nothing change, I got the same error. :(
Il giorno domenica 29 luglio 2012 16:49:36 UTC+2, Mariano C. ha scritto:
>
> I'm try to develop a simple webservices in CakePHP 2.1. So, i first
> created a DB table:
>
> CREATE TABLE IF NOT EXISTS `people` (
>> `id`
I'm try to develop a simple webservices in CakePHP 2.1. So, i first created
a DB table:
CREATE TABLE IF NOT EXISTS `people` (
> `id` char(36) COLLATE utf8_bin NOT NULL,
> `first_name` varchar(100) COLLATE utf8_bin DEFAULT NULL,
> `last_name` varchar(100) COLLATE utf8_bin NOT
On 6 Mag, 08:19, Ryan Schmidt wrote:
> On May 5, 2011, at 15:16, Mariano C. wrote:
>
> > function beforeFilter()
> > {
> > parent::beforeFilter();
> > $this->Auth->allow(array('showTables'));
> > }
>
> > When i callhttp:/
our database tables' encoding to UTF-8, but you'll have to take special care
> to convert the encoding of all your existing data properly without messing it
> up (unless your existing data is only test data in which case just truncate
> it and make new test data).
>
>
I've followed your guide to auth:
http://book.cakephp.org/view/1250/Authentication
This is my app_controller.php:
class AppController extends Controller {
var $components = array('DebugKit.Toolbar', 'Session', 'Auth');
var $helpers = array('Html','Javascript', 'Session', 'Ajax',
'Faceboo
, Ryan Schmidt wrote:
>
> > On May 4, 2011, at 16:55, Mariano C. wrote:
>
> > > 1) when I insert data inside DB through a form, it will be stored as:
> > > "This letters è is è and this l’ is an apostrophe "
>
> > > If I try to edit this text t
1) when I insert data inside DB through a form, it will be stored as:
"This letters è is è and this l’ is an apostrophe "
If I try to edit this text trough proper editing form, all of this
strange characters will be represented in right way as: è and '.
What can I do to proper echo the text eve
> > Anyway if you get the flash messages, it should be consumed by the login
> > action. Meaning that if you enter wrong credentials, and thus the login
> > message shows again, then the $this->Session->flash('auth') line should
> > consume the message.
>
> I would guess (that recipe isn't in my RA
That is correct, the $this->Session->flash('auth'); message is not part of
the layout
because I relayed on people following:
http://book.cakephp.org/view/1252/Displaying-Auth-Error-Messages
I should've added an Information Box to clear it out :(
Anyway if you get the flash messages, it should b
What are you talking about here? "By default you would not go through the
login
action before Auth will do, so your code is useless"
Did you read the recipe? If so, you'll learn that the intention is to handle
the login *AFTER*
the Auth component processed and found no valid credentials, thus DE
My DB server doesn't support innodb engine, so I can't use Foreign key
costraint.
How can I assure referential intergrity? Can I do this using cakephp,
how?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.ca
y
(
[type] => datetime
[null] =>
[default] =>
[length] =>
)
)
On 9 Apr, 19:37, cricket wrote:
> On Sat, Apr 9, 2011 at 5:40 AM, Mariano C. wrote:
> > Wherever I put this debug($this->MyModel::schema()) i get:
> >
Wherever I put this debug($this->MyModel::schema()) i get:
T_PAAMAYIM_NEKUDOTAYIM php error :(
On 8 Apr, 21:23, cricket wrote:
> On Fri, Apr 8, 2011 at 2:28 PM, Mariano C. wrote:
> > I suppose, I've just made a dump
>
> What is the primary key for the model? Is it id? The
I suppose, I've just made a dump
On 8 Apr, 19:40, cricket wrote:
> On Fri, Apr 8, 2011 at 4:11 AM, Mariano C. wrote:
> > Disparity among DB' structure and?
>
> Are the databases identical?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakep
Disparity among DB' structure and?
On 8 Apr, 03:25, cricket wrote:
> On Thu, Apr 7, 2011 at 4:47 PM, Mariano C. wrote:
> > I starting developing my app on windows on Apache/MySQL/PHP
> > environment, today i've copied my htdocs directory returned on my
> > ubun
I starting developing my app on windows on Apache/MySQL/PHP
environment, today i've copied my htdocs directory returned on my
ubuntu, again under AMP environment (and paste my htdocs).
Every things work quite good, but sometimes I have error like:
Notice(8) Undefined index: id [CORE/cake/libs/mode
I don't need a complete mechanism of authentication.
I just want to protect every action with http basic and leave just one
action unprotected.
As soon add Auth component I should create users table and so on, and
I would avoid this.
On 6 Apr, 10:01, "Mariano C." wrote:
> S
hese are set in the controller itself so you could specify just the 1
> allowed action for that controller.
>
> K
>
>
>
>
>
>
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>
> Of Mariano C.
&g
I've read this article
http://book.cakephp.org/view/1309/Basic-HTTP-Authentication
Now I've a lot of controller with many actions to protect, so I could
consider the idea to insert that beforeFilter directly inside
AppController (and not in the single controller), so every action will
be protecte
I have two models: Team and Season, these are binded by Membership
model. As explained in book, i've designed it as:
Team and Season hasMany Membership
Membership belongsTo Season and Team
If I want create a membership row:
function add($season_id, $team_id)
{
if(($this->Season->e
I followed http://book.cakephp.org/view/632/autoComplete, and this
work. Now the problem is:
I choose an element from suggested items, but actually I haven't ID so
this isn't so usefull.
It could be better if as soon I choose an element, it's id will be
stored immediatly inside an hidden input, so
>
> i bet thats your problem
> if(false) is always false!!! the code inside will never be executed
>
> On 25 Mrz., 13:46, Stephen wrote:
>
>
>
>
>
>
>
> > set 'value' => '' in your inputs on add.
>
> > On 25 March 2011 12:43,
Nothin change.
On 25 Mar, 13:08, Stephen wrote:
> unset $this->data ?
>
> On 25 March 2011 11:18, Mariano C. wrote:
>
>
>
>
>
>
>
>
>
> > I have a form inside add.ctp view:
> > echo $form->create('...');
> > // ...
> >
I have a form inside add.ctp view:
echo $form->create('...');
// ...
echo $form->submit('Save and back', array('name'=>'saveAndBack'));
echo $form->submit('Salva and add new',
array('name'=>'saveAndAddAgain'));
echo $form->end();
Now, add function inside controller is something like:
// grab butto
eason->getLastSeasonId();
Why?
On 24 Mar, 22:23, cricket wrote:
> On Thu, Mar 24, 2011 at 4:11 PM, Mariano C.
> wrote:
> > I have this code, I need (for every page) to read a session, if
> > doesn't exist read from a model and then write the session, something
> &
I have this code, I need (for every page) to read a session, if
doesn't exist read from a model and then write the session, something
like:
==
function beforeFilter()
{
// read session variable
$id = $this->Session->read('editable_season_id');
// id
i've found what I need:
http://book.cakephp.org/view/1046/Multiple-relations-to-the-same-model
On 19 Mar, 17:27, AD7six wrote:
> On Mar 19, 4:52 pm, "Mariano C." wrote:
>
> > I'm developing a project about little soccer league. I need to store
> > teams, t
I'm developing a project about little soccer league. I need to store
teams, team's players, matches info (which are two teams involved in
the match), events (various events happened douring a single match -
goal, penalty, red card, yellow card etc etc-)
This is the DB realized (only PK and FK are
I need to develop some joomla component, I haven't time to learn
joomla's MVC approch so I would use cakephp to develop this component.
I've seen around there is a lot of way to do this. One of best way is
to use cake itself as component as suggested here:
http://www.gigapromoters.com/blog/2007/02/
I have two function getBasicInfo read specific book's information
through $book_id then pass the record readed to increaseOwners that
should upgrade owners field of recordset passed.
This works pretty good, but $this-unbindModel(array('hasMany' => array('BooksUser')));
$this->id =
I have a table called supports, with two fields: id and name.
1 single_s
2 double_s
...
Support model is:
array('name'));
function getAll()
{
$this->unbindModel(array('hasMany' => array('BooksUser')));
$options = array
(
I have a code like:
echo "Add as ".$content;
I have to internationzalize this snippet of code, i need to put in
i18n process even the $content variable, how can I do that?
Best Regards
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questi
Is there a way (helpers, components) to obtain with Cake PHP the
user's country and associated language for that country?
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 G
Number helpers was not added to helpers array.
Resolved!
On 7 Nov, 11:09, "Mariano C." wrote:
> No statical call to debug.
> This lines was the problem:
>
> format($top_author['readers'],
> array('before' => '', 'places'
ing works.
Just a simple number format. Why this stop everything in debug=0 but
it's ok in debug=1 or debug=2???
On 6 Nov, 20:13, cricket wrote:
> On Sat, Nov 6, 2010 at 2:08 PM, Mariano C. wrote:
> > I've always developed my application with debug set to 2, now I've
What type of changes could cause these problem?
Why only one controller?
On 6 Nov, 19:11, Tilen Majerle wrote:
> i'm sure, that you made changes in cake directory...here is maybe problem!!
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/11/6 Mariano C.
>
> > I'
I've always developed my application with debug set to 2, now I've
turned it to 0 and start to try it on the same machine but now all
actions of a specific controller are rendered in a wrong way. Only one
controller seems to gave me this error.
I've tried to restart server, open/close browser, sam
idea?
On 20 Ott, 19:04, "Mariano C." wrote:
> This gave me Book array, Author array, and an empty BooksUser array,
> the rest of array is not returned
>
> On 20 Ott, 18:45, Fran Iglesias wrote:
>
> > $this->paginate['Book'][0] = 'first';
&
This gave me Book array, Author array, and an empty BooksUser array,
the rest of array is not returned
On 20 Ott, 18:45, Fran Iglesias wrote:
> $this->paginate['Book'][0] = 'first';
>
> should do the trick...
>
> El 20/10/2010, a las 18:43, Mariano C. escrib
I have five tables: users, books, books_users, authors and types.
users, authors and types just have PK field called id.
books have PK called id and FK called author_id (ref. Authors)
books_users have PK called id and 3 FKs user_id, book_id, type_id
(respectively Ref. users, books, types).
I have
I'm studing model associations, I would know if i've understand it
correctly:
I have five tables: users, books, books_users, authors and types.
users, authors and types just have PK field called id.
books have PK called id and FK called author_id (ref. Authors)
books_users have PK called id and 3
data:
", in this way (with find) I get all data in one time, but i need it
paginated, what I've to do after find?
On 3 Ott, 22:48, cricket wrote:
> On Sun, Oct 3, 2010 at 4:31 PM, Mariano C. wrote:
> > How can I rewrite my function to do things like u suggested???
>
> &g
How can I rewrite my function to do things like u suggested???
On 2 Ott, 21:53, "Mariano C." wrote:
> my function that paginate is something like
>
> function ... paging()
> {
> $this->paginate = array(.);
> $books = $this->paginate('Book
icket wrote:
> On Sat, Oct 2, 2010 at 1:27 PM, Mariano C. wrote:
> > Then, I have a User model and a Book Model I bind it as:
> > User HABTM Book
> > Book HABTM User
>
> > So I have books_users table inside my DB and CAKEPHP will
> > automatically create BooksUs
Then, I have a User model and a Book Model I bind it as:
User HABTM Book
Book HABTM User
So I have books_users table inside my DB and CAKEPHP will
automatically create BooksUser virtual model.
Now if I want to know about a user's book collection I call method
getCollection inside User controller.
Then I have 3 models: Album, User, AlbumsUser linked together
Album has many AlbumsUser
User has many AlbumsUser
AlbumsUser belongs to Album, User
I have a function (in User controller) that paginate all results and
return me:
Array
(
[0] => Array
(
[AlbumsUser] => Array
t;
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 27 Sep 2010, at 17:48, Mariano C. wrote:
>
> > I've a problem with my free host, I cant' create char! Can I specify
> > another field type for magic id creation. A
I've a problem with my free host, I cant' create char! Can I specify
another field type for magic id creation. And if I can, where I have
to explain that?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message be
s that the field must be present in the data array, and
> >> doesn't really test its value. So in your case, required => true might be
> >> enough.
>
> >> Jeremy Burns
> >> Class Outfit
>
> >> jeremybu...@classoutfit.comhttp://www.classoutfi
Reading the doc there's explained that require isn't a "pure" rule, so
I'm asking how can I use it in multiple validation per field case:
example:
var $validate = array
(
'id' => array(
'idRule-1' => array(
'rule' => 'isUni
);
>
> > // In users controller
> > $this->Auth->allow('collection', 'register');
>
> > On Sep 24, 11:32 am, "Mariano C." wrote:
>
> > > Hi, this is my app_controller
>
> > > class AppController extends Controller
Hi, this is my app_controller
class AppController extends Controller
{
var $components = array('DebugKit.Toolbar', 'Auth', 'Session',
'Facebook.Connect');
var $helpers = array('Facebook.Facebook');
function beforeFilter()
{
$this->Auth->allow(array(
there's a way (helpers or just howto) to use prototype based tooltip
inside my page?
Everything i've found is out of date
Regards
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
I have a table users, associated to model User and so on...
When I logged in, row associated to my account info, will be
automatically saved as session.
There's a lot of field inside users/User that i don't need to save as
session, how can I exclude it?
Check out the new CakePHP Questions site htt
I don't know if I can't move it inside the model.
I make some session's check that go broke inside the model
On 17 Set, 17:38, "Mike Karthauser" wrote:
> On Fri, September 17, 2010 4:30 pm, Mariano C. wrote:
> > I have Book's controller
> >
I have Book's controller
newAuthor('Stephen King'); // call newAuthor()
}
function newAuthor( $name ) {// method's logic }
}
?>
This work perfectly but function newAuthor() is better placed inside
Author's controller. But when I put it inside Author's controller I
don't know how t
-8
>
> On Sep 15, 1:42 pm, "Mariano C." wrote:
>
> > I have tried the same on Mac OSX with snowleopard nothing changed.
> > Ideas?
>
> > On 15 Set, 09:02, AD7six wrote:
>
> > > On Sep 15, 8:43 am, "Mariano C." wrote:
&g
Now that I've tested that this problem is not only on centos but even
on Mac OS with Apache, how can I workround this?
On 15 Set, 19:42, "Mariano C." wrote:
> I have tried the same on Mac OSX with snowleopard nothing changed.
> Ideas?
>
> On 15 Set, 09:02, AD7six wrot
I have tried the same on Mac OSX with snowleopard nothing changed.
Ideas?
On 15 Set, 09:02, AD7six wrote:
> On Sep 15, 8:43 am, "Mariano C." wrote:
>
>
>
> > On 14 Set, 22:10, AD7six wrote:
>
> > > On Sep 14, 10:09 pm, AD7six wrote:
>
>
On 14 Set, 22:10, AD7six wrote:
> On Sep 14, 10:09 pm, AD7six wrote:
>
> > On Sep 14, 7:41 pm, "Mariano C." wrote:
>
> > > this post suggest to modify server setting. I'm not the server admin,
> > > I can't modify it. Can I handle this by
this post suggest to modify server setting. I'm not the server admin,
I can't modify it. Can I handle this by my hand!
On 14 Set, 19:21, cricket wrote:
> On Tue, Sep 14, 2010 at 1:11 PM, Mariano C.
> wrote:
> > and what if I'm on centos?
>
> I think Andy'
and what if I'm on centos?
On 14 Set, 11:23, AD7six wrote:
> On Sep 14, 11:22 am, AD7six wrote:
>
> > On Sep 14, 9:13 am, "Mariano C." wrote:
>
> > > and how can I set proper utf8 encoding? Is there a tutorial/article?
>
> > That's poss
to
> > your class and adding some debug steps like print_r, print_r(__LINE__)
> > etc to see exactly whats happening
>
> > On Sep 12, 12:18 pm, "Mariano C." wrote:
>
> > > inside core.php
>
> > > Configure::write('App.encoding',
inside core.php
Configure::write('App.encoding', 'UTF-8');
I've even try with content type inside head:
On 12 Set, 16:29, "j.blotus" wrote:
> From the cookbook:
> The slug method expects UTF-8 encoding.
>
> Are you using utf-8?
>
> On Sep
PPS: core.php is setted with: Configure::write('App.encoding',
'UTF-8');
but inside application the letter é is replaced by a question mark
icon
What i have to do?
On 12 Set, 09:59, "Mariano C." wrote:
> I have a list of words correctly slugged but, on word
I have a list of words correctly slugged but, on word "apple purée"
Inflector doesn't return me nothing.
echo Inflector::slug("apple purée");
not error or warning returned but neither an output. Why??? My cake is
1.3.
PS: the words "apple purée" is used as example here:
http://book.cakephp.org/v
Content',
'with' => '{
token: "'.$token.'"
}'
)
);
CONTROLLER:
Then inside remove() function:
1) Grab the token passed through "with"
2) Grab the token
I try to explain better. I have a remove link inside my view,
something like:
h_ttp://myweb.com/collections/remove/12
This will remove element with id 12, and it works perfectly. If a user
call this element coping and pasting it inside a browser URL field
this works too, but I want that this call
thanks to all ;)
On 8 Set, 22:10, euromark wrote:
> i'd do it similar
> tohttp://github.com/dereuromark/tools/blob/master/libs/github_lib.php
>
> the key should not be IN the class, though
> store it in configs and call Configure::read(Facebook.key) etc
>
> On 8 Sep.,
ld
create a class with that handle this connection, so when I need I can
just write
$fb = new FbApi();
$result = $fb->exec_api('Check out this funny article');
Obviously, API key is stored inside new class.
On 8 Set, 20:05, cricket wrote:
> On Wed, Sep 8, 2010 at 1:40 PM, Marian
I get the answers from webservice, throug curl calling. I would wrap
these instruction inside a class. So I can create the handle and get
the response simply calling the proper method.
Where I have to put this type of class?
Check out the new CakePHP Questions site http://cakeqs.org and help othe
Suggestions?
On 7 Set, 09:27, "Mariano C." wrote:
> array_merge() returns me another array, so I really don't understand
> how I should use it.
>
> On 6 Set, 18:49, "j.blotus" wrote:
>
>
>
> > array_merge()
>
> > On Sep 6, 12:15 p
array_merge() returns me another array, so I really don't understand
how I should use it.
On 6 Set, 18:49, "j.blotus" wrote:
> array_merge()
>
> On Sep 6, 12:15 pm, "Mariano C." wrote:
>
>
>
> > Can I resolve serializing the array()?
> >
Can I resolve serializing the array()?
And if I could how should I code the things?
On 6 Set, 18:12, euromark wrote:
> you cannot put another array into the url array
>
> On 6 Sep., 17:52, "Mariano C." wrote:
>
>
>
> > This is the error (line 121 in users_contr
r::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
On 6 Set, 05:37, "j.blotus" wrote:
> No array to string conversion errors? What kind of E_NOTICE error are
> you getting.
>
> On Sep
I haven't error message, line 106 and 107 are just the line of
collection() function with debug instructions.
On 5 Set, 21:04, "j.blotus" wrote:
> what is the specific error message you are getting. check lines 106
> and 107 of your users_controller.php
>
> On
Then I've a method called collection
function collection($username = null,
$page = 1,
$sort = array('Artist.name',
'Album.year'),
$direction = array('ASC', 'ASC')
)
{
debug(is_array(
I've an ajax link like this:
echo $ajax->link('remove', array(
'controller' => 'posts',
'action' => 'remove',
$id
),
array(
'update' => 'ajaxContent',
'with' => '{
username: "'.$user.'",
page: "
iew and then the pagiation should be
> set as it is supposed to be. I do not have much experience in Ajax so
> I can't really advise you better on how to make your own paginaton ..
>
> On Sep 2, 4:36 pm, "Mariano C." wrote:
>
>
>
> > Suppose to have 3 pag
Where can I find a turorial/article?
On 2 Set, 19:40, cricket wrote:
> On Thu, Sep 2, 2010 at 9:22 AM, Mariano C. wrote:
> > I have a view like this, called collection.ctp
>
> > echo ""
> > foreach ($elements as $element):
> > echo ""
Suppose to have 3 page, I delete an object from page 2, so I would
take the first element from page 3 and use it as last element of page
2, and so on...
There's an article or tutorial to explain that?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP r
1 - 100 of 884 matches
Mail list logo