Is It someone that can help me?
On 29 Ott, 15:25, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi
> I would use the Error HAndling of CAKEPHP.
> I create a my function in app_error.php
> Now if I set the debug to 0 if I use this function I get always
> another page (I think the error404 )
>
Hi
I would a advice.
I have a view where I have a ajax form and a list of element that I
get from the property set in the form.
Now I would that the form is a ajax form and then I submit the form
then the view is reload exactly where the view is previously loaded.
How can I do it?
Many Thanks
--~-
Hi
I have this problem .
I do a save operation on a model inside an action of my controller.
If i do a read operation on the model of the ID object that I do to
save later I get that the $this->data contains the data that I have
read with read operation.
I have made some errors or there are option
what you mean. Can you post an example of that
> part of your controller action?
>
> On Tue, Jan 13, 2009 at 6:21 AM, marco.rizze...@gmail.com
>
> wrote:
>
> > Hi
> > I have this problem .
> > I do a save operation on a model inside an action of my controller.
> &
> Try adding `var $cacheQueries = false` in your model definition.
>
> hth
> grigri
>
> On Jan 14, 8:53 am, "marco.rizze...@gmail.com"
>
> wrote:
> > I paste my code:
>
> > function edit($id=-1)
> > {
> >pr($this->data); // Original
Hi
I have Cake 1.2 installed.
Now I have some xml view that I would use with some XSL.
What is the best practise to do it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send e
Hi
I have a production ( debug=0 ) system with CAKEPHP.
Now I must create a logging system in order to register all possible
errors (PHP execution error or MySQL error etc. )
I have read some post about this but I don't understand completely how
do it?
For example for MySql error I can use the met
Another thing for MYSQL I would get also the "warning" how can do
it?
On Feb 10, 6:24 pm, "marco.rizze...@gmail.com"
wrote:
> Hi
> I have a production ( debug=0 ) system with CAKEPHP.
> Now I must create a logging system in order to register all possible
>
Another thing ... not all MySql's errors are detected with the method
Error inside AppModel
On Feb 10, 6:24 pm, "marco.rizze...@gmail.com"
wrote:
> Hi
> I have a production ( debug=0 ) system with CAKEPHP.
> Now I must create a logging system in order to register al
I have set these options but my error.log inside app/tmp/log isn't
updated if I set the debug to 0.
On Feb 10, 6:55 pm, mscdex wrote:
> marco.rizze...@gmail.com wrote:
> > Now I must create a logging system in order to register all possible
> > errors (PHP execution erro
Hi
I have a form.
Inside this form I have a field disabled but with a value.
When I post form but in the form there are errors when the form is
reloaded qith the errors the disabled field is empty.
How can I correct this?
Many Thanks
--~--~-~--~~~---~--~~
You receiv
How can I enabled readonly for this field?
I would use $form->input helper function
I try to set echo $form->input('name',array('readonly'=>true)); but it
doesn't work
On Feb 13, 4:30 pm, Marcelo Andrade wrote:
> On Fri, Feb 13, 2009 at 11:28 AM, marco.ri
.
Instead if there is a validation error the operation to get the
possible value of the second select aren't executed and I can't see
the right values inside the second select.
How can I resolve this?
On Feb 13, 4:34 pm, "marco.rizze...@gmail.com"
wrote:
> How can I enabled reado
Hi
I have a page where the user can upload its photo.
I save the photo always in the same location.
In FF when I reload the page after the save operation I see the right
photo.
In IE instead i see always the old photo.
I try to use disableCache() function but I can't to resolve the
problem.
Can so
If I would to avoid this thing without change always the name of file
how can I do it?
On Feb 14, 5:38 pm, fain182 wrote:
> > Hi
> > I have a page where the user can upload its photo.
> > I save the photo always in the same location.
> > In FF when I reload the page after the save operation I se
Hi
I have this situation.
I use cake 1.2 stable.
I have a save operation on a model.
Now if I make a read operation on a model before the save operation I
get that in the $this->data I have also data that come from the read
operation.
How can I avoid this situation?
Many Thanks
--~--~-~-
Hi
I have this situation.
I have create an action in my controller where I can do search on a
model (search on every field of my model).
Now I have that I would that some field must be except from
conditions.
Is better if I do the filtering on the conditions on a method of the
model or with a com
Hi
I have a mediawiki and a cakephp application.
Now I would make that a user that is logged on my application can
automatically access on wiki.
So I use the API of the wiki to make login and then I set the cookie
for the wiki. But then in this way I lost the cookie relative for my
cakephp applic
I have seen from manual that I can pass arguments to paginator
functions with
$paginator->options(array('url' => .));
Now with this I arguments pass via GET.
How can I do If I would pass arguments via POST.
Many Thanks
--~--~-~--~~~---~--~~
You recei
Hi
I must to make a big application in CAKEPHP.(Like a multiservice
platform).
Before to start the develop I would ask what is the best way to
organize the CSS and the javascript for a big application?
Many Thanks
--~--~-~--~~~---~--~~
You received this message beca
Hi
I would use MI-Base for my application.
I have a question about it
1)I have different databases (one for my application (for example a
blog ) and one where there is saved the user's data (legacy
application) ). How can I manage a situation like this?
--~--~-~--~~~--
Hi
I try to use the upload and image_upload behaviour of MI-BASE project
for add field photo to user model
My code is:
In model
var $actsAs= array(
'ImageUpload' => array(
'fileField' => 'photo',
'allowedMime' => array('image
My question is:
If in a model I have many image fields and many upload field how can I
set the model to permit the use of AD7six Upload Behaviour with all
these fields?
Many Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
Hi
I very interesting to use the MI-BASE like the base for my projects.
Is it some documentation for speed up the use of mi-base
behaviours,helpers, components etc.?
Many thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi
Perhaps thi is a banal question
I would have more than one for the localization (one for validation
message,one for name of fields etc...).
I try to use in locale multiple files over default.po but I get no
good results.
How I can do this?
Must I configure cake in some way?
Thanks
--~--~---
Hi
I have a page where I have an element (with params) that is a list of
items.
Now I would that when user click on a certain button the element is
reload .
I would make this with ajax.
How can I do the ajax reload of an element?
Many thanks
--~--~-~--~~~---~--~~
Y
Is it someone that use simpleSAML with CAKEPHP?
I have some questions about it
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubsc
Hi
I have this partocoular situation.
I have a CAKEPHP application in a certainly virtual host of my server
In another virtual host I have a normal php application.
Now in this application I have the need to access to the CAKEPHP
session of first application.
Is it possible to do a thing like th
My question is this?
How can I sharing CAKEPHP Session with external app on a different
virtual host?
Many Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to c
Hi
I would use Memcache to save the php session.
I have installed memcached on my system and I have configured it.
I have set in php.ini the session's handler to memcache .
I try to use a session in a simple php script and all works fine.
But when I try to use the session in CakePHP the session d
Hi
I have a web application where I would use session.security at higt
level but it uses ajax call.
Is it possible to have both things working togheter?
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
Hi
I would prohibit saving of some fields that in my edit action in a
controller .
I try with $this->Security->disabledFields = array('.); but it
doesn't work.
I have seen that I can set in save method which fields save but I have
many fields so if i can set which field not save it's better fo
Hi
I try to use memcache for save sessions in a CakePHP application.
I install memcache,all works fine also the php sessions.
Now in my CakePHP application I set in core.php this:
Configure::write('Session.save', 'php');
Now I try to use the Session component in my application but I get
I would use the error message form a data validation like ALT of an
image but I can't to understand ho can I do it?
Has somebody a idea to o it?
Many Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gr
I have my web application in Cakephp.
It has his registered users .
Now I would add a ticket system on my application only for registered
users.
I have searched a ticket system made in Cakephp but I haven't found
anything.
Is there someone that has found something made in Cakephp?
Thanks
--~--~---
Hi
I have my application in CakePHP.
My application only manages users and services.
More precisely I have some registered users and I have some services.
With CakePHP I manage which users can access certain services and
which can not.
For the moment all services are made in cakephp so the managem
Hi
I have a particular question.
I have a web mobile application.
This application has his authentication part (with Auth component).
Now one features of the web application is that the user in certainly
situation receives a sms with a link.
If he clicks on link I must open a session that allows on
Hi
I have CakePHP 1.2
I have Security.level = medium because with high I have many problems
with Ajax calls because the session is renewed every time.
With Security.level = medium I have noted that the session doesn't
expire when I close the browser window.
My question is how can do to expire sess
Hi , I have a curiosity.
If I have a php script inside the Cake webroot and in this script I
try to do print_r($_SESSION); I can't see the Cake session
Instead if I inlude in this php script the core file of Cake session
and I do a CakeSession->start then with print_r($_SESSION) I can see
the Cake
Hi
I have downloaded cakephp 1.3.5.0 and I have PHP 5.3.3
I have unzip cake and I try to see if it works correctly and I get
this errors :
Warning (2): strtotime() [function.strtotime]: It is not safe to rely
on the system's timezone settings. You are *required* to use the
date.timezone setting or
Hi
I can't find more the Wiki about Media Plugin of David Persson.
Can someone give me the new url to the Wiki?
I don't remember how use medium helper.
Many Thanks
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this m
media.ph...
>
> - David
>
> On 29 Nov., 16:19, "marco.rizze...@gmail.com"
>
> wrote:
> > Hi
> > I can't find more the Wiki about Media Plugin of David Persson.
> > Can someone give me the new url to the Wiki?
> > I don't remember how use
Hi
I try to use the localization of Cake.
I have se in my errors.po:
msgid "The submitted file extension is not permitted, only %s
permitted."
msgstr "L'estensione del file caricato non è permessa, solo %s sono
permesse."
But in my code when I have this __d('errors',''The submitted file
extensio
Hi
I have noted that in my page I use heavily the ajax helper and
javascritpt helper.
Now I would move all this code generating by these helpers in a single
js file (inside webroot).
My question is what is the way (the best way) for to this?
More precisely I would continue to use Ajax helper and J
Hi
I have this situation:
I have a model Event and a model News , Both models have the field
'created' .
Now in my view I would create a single list where there is there are
both each others order by created.
Example
Event 107/09/09
News 107/09/09
News 206/07/09
..
..
.
Hi
I use Security component and I have a view like this:
create(NULL, array( 'url' => '/test/'))); ?>
input('testValue',array('name'=>'data[testValue]',
'id'=>'testValue','label' => 'Test Value:','options'
=> $testValues)); ?>
/div>
end(__d('buttons',"Try",true)));
?>
When I try to submit the
Hi
I use Form helper like this:
e($form->input(
'startDate' ,
array(
'id' => 'starDate',
'name' => 'data[starDate]',
'label' => 'Start date:' ,
'type' => 'date',
'dateFormat' => 'DMY',
'
Hi
I have developed my web application with CakePHP.
For the moment I use one Apache server and one MySql server.
Now I have noted that my application is getting slow because the
numbers of users is increasing.
So I have decided that is the time to scale my architecture.
I have tried to find some
Hi
I use ajax helper to load the content of a div inside my page.
In this ajax content I have this:
codeBlock('var value='.$value.';'); ?>
But when I try to use the javascript variable value I get the error
that the value doesn't exist.
In my ajax call I have set eval to true.
Can someone tell
Hi
I have a design question on ACL that I would use in my system.
The problem is my system is a bit different from standard.
I have users that can be belong to many teams.
So a user can belong to two,three,four etc... teams.
Moreover I have to manage the access of users to a document's list.
To do
Hi
I have installed memcache on my system.
I have setted CakePHP to use memcache.
I have setted the Configure::write('Security.level', 'medium');
All seems to work but sometimes I lost the session. In particular I
note this when I do a sequence of ajax call.
A simple example to show this err
Hi
I must do a ajax call to an external site.
I use a proxy to circumvent the Same Origin Policy.
My action-controller proxy is:
function proxy($url) {
$this->redirect($url,301,true);
}
In my view when I do the ajax call I get the error :
Error: Http:Controller could not be fo
in this situation I get
all problems
that I have described.
Marco
>
> On Oct 6, 5:19 pm, "marco.rizze...@gmail.com"
>
> wrote:
> > Hi
> > I have installed memcache on my system.
> > I have setted CakePHP to use memcache.
> > I have setted the
Hi
I use the Auth component to login in my application.
I have noted that when the login is correct all fields of User model
are saved in the session.
How can I do so only some fields are saved in session and the other
not?
Thanks
Marco
--~--~-~--~~~---~--~~
You rec
Hi
I use containable behaviour, but I don't get all data that I have
requested
My code is :
$options['fields'] = array('User.*');
$options['conditions'] = array('User.username' => $user_id);
$options['contain'] = array(
'Orga
!
> You don't get the team!
>
> I am guessing - are you trying to get all the users in the first team
> for the specified user?
> Enjoy,
> John
>
> On Oct 30, 6:30 pm, "marco.rizze...@gmail.com"
>
> wrote:
> > Hi
> > I use containabl
t;Team->find(...)
>
> Enjoy,
> John
>
> On Oct 31, 12:13 pm, "marco.rizze...@gmail.com"
>
> wrote:
> > Yes I try to get all the users of the team with id=4 but I don't get
> > anything.
> > Where do i mistake?
>
> > On 30 Ott, 20:
Hi
I have 2 models that haven't DB like datasource.
Now I would set a HABTM relation between these models ( I manage the
data to save with my create method in my datasource).
Now If I don't set a jointable when define HABTM relation I get an
error.
How can I define a HABTM relation without jointa
Hi
In my application I have the model "Item" and the model "User".
Every item is visible by some users and it isn't visible by other
users. So I have a HABTM between "User" and "Item".
Now I must register when a user views an item and when a user selects
a item (a user can select some visible items
Hi
I have to define a hasOne relation between model (model A) with DB
like datasource a model (model B) with datasource that isn't a DB.
If I have this controller operation:
pr($this->ModelA->find('all'));
die();
I have noted that CakePHP products a single sql que
Hi
I have installed the Media Plugin in my system (I work on windows
system).
I try to test if all works using directly the Attachment Model.
I try to upload a jpeg but I get always an mime type error.
I have mime_magic installed.
I try to do a bit of backup on code of Media Plugin and I have find
Hi
I have installed the Media Plugin in my system (I work on windows
system).
I try to test if all works using directly the Attachment Model.
I try to upload a jpeg but I get always an mime type error.
I have mime_magic installed.
I try to do a bit of backup on code of Media Plugin and I have find
, 16:15, "marco.rizze...@gmail.com"
wrote:
> Hi
> I have installed the Media Plugin in my system (I work on windows
> system).
> I try to test if all works using directly the Attachment Model.
> I try to upload a jpeg but I get always an mime type error.
> I have mime_magi
Hi
I would use XML in my application.
I define my default layout in xml like :
");
?>
Now when I call a page like : /{controller}/{action}.xml I get this
error :
Error interpretation XML: non well-formed
Line number 2, column 3:
---^
Can someone help me about this?
Check out the new CakePHP
Hi
I have this need.
I have to do a model's save with a field that normally can't be empty
but in this case can be empty.
How can I do to save doing the validation only on some fields and not
on others fields?
Many Thanks
Check out the new CakePHP Questions site http://cakeqs.org and help others w
Hi
I have a old DB.Now I must do a CakePHP app on this Db.
For the moment I do the scaffolding but I have noted that in edit.php
I see all fields empty.
If I set encoding in database.php like 'encoding' => 'utf8' all works
fine.
Can someone explain me why is this and what is the difference?
Then I
Hi
I use MediaPlugin of David Persson.
All works perfectly.
I have only this question about the use of this plugin
I have the model Photo that is configurated like :
var $actsAs = array(
'Media.Polymorphic' => array(
'classField' => 'model',
Thank you very much Andrey
I have another question.
I have protected the Transfer Directory where i have uploaded images
If I use the cakephp html helper to show these images in my pages I
can't show anything
With media helper is it possible to show these image in my pages or I
must use another met
Hi
I would ask another question about media plugin:
In my attachment model I have this configuration for Media.Transfer:
'Media.Transfer' => array(
'trustClient' => false,
'destinationFile' =>
':Medium.short::DS:attachments:DS::Model.id::DS:attachment.:Source.extension:',
'baseDirec
Hi
I'm newbie with cakephp.
I have this structure : Users HABTM Groups.
Now I would use ACL to manage permissions but ACL is right when the
Users belongsTo Groups.
I have try to search in the forum but I don't understand if with
cakephp ACL it is or isn't possible.
Can someone that has tried to do
Hi
I use ACL to control access to model "Post" made by "User".
Now I have to find all or paginate all posts that are accessible by a
specific user.
How can I use ACL inside find operation to do this?
Many Thanks
Marco
Check out the new CakePHP Questions site http://cakeqs.org and help others with
Have anyone some suggestions about this?
On 23 Lug, 13:58, "marco.rizze...@gmail.com"
wrote:
> Hi
> I use ACL to control access to model "Post" made by "User".
> Now I have to find all or paginate all posts that are accessible by a
> specific user.
>
Hi is it possible use a model in Acl both ARO and ACO?
Thanks
Marco
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 gr
Can someone some suggestion for me?
Thanks
On 29 Lug, 09:41, "marco.rizze...@gmail.com"
wrote:
> Hi is it possible use a model in Acl both ARO and ACO?
> Thanks
> Marco
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP rela
Can you tell me how the model has to be configurated?
On 29 Lug, 15:04, AD7six wrote:
> On Jul 29, 1:16 pm, "marco.rizze...@gmail.com"
>
> wrote:
> > Can someone some suggestion for me?
>
> Yes.
Check out the new CakePHP Questions site http://cakeqs.org and
I'm using David Persson MediaPlugin.
With the version relative to cake 1.2 all works fine.Now I'm upgrading
my web application to cake 1.3 so I try to use
the Media Plugin version relative to cakephp 1.3.
I have some problem with the use of callback "transferTo" instead of
'destinationFile' config
Hi
I use MediaPlugin of David Persson.
All works perfectly.
I have only this question about the use of this plugin
How can I set the plugin to use .zip file , .7zip file , .rar file
For the moment I get always this error :
Fatal error: Uncaught exception 'Exception' with message 'No adapters
conf
But I get this error:
Fatal error: Media_Info_Generic::require_once() [function.require]:
Failed opening required 'c:\.\plugins\media\libs\mm\src\Media\Info/
Adapter/Document.php' in C:\.\plugins\media\libs\mm\src\Media\Info
\Generic.php on line 54
Someone can help me about this?
Thanks
On 30 A
Is here someone that uses this plugin?
On 13 Set, 15:43, "marco.rizze...@gmail.com"
wrote:
> I try to resolve this error with this setting in core.php :
>
> Media_Info::config(array(
> 'document' => array('Document'),
> 'image&
Hi
I have a web application with CakePHP
I would have some statistics about the use of web application.
It is not enough use the log file of the web server because I would
store the id of the logged user.
I would ask if exist an existing system in CakePHP to do it?
Many Thanks
--~--~-~--~
Hi
I use the unique attribute in a HABTM relation.
Now If it's true (default value) cake should first delete existing
relationship records in the foreign keys table before inserting new
ones, when updating a record.
Instead I noted that it happens only if in updating operation I have
the data rel
Hi
I have added "created" field to HABTM join tables, but when I try to
do a save I noted that this field aren't updated automatically.
Is it normal or that is some problem?
Many Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hi
I have a web application with has many services.
Now user has a main page from that he can access to every services.
Now I keep the value of service_id inside the session.
My problem is that the user can have many services opened
simultaneously (every service in a different tab ) so when the
Hi
I have three model that have a triple relation between them.
How can I manage this triple relation between Model in CAKEPHP?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, s
Hi
I would to do a centralized system to manage error in production in my
application.
For the moment I manage cake error with app_error.php
I manage php error inside boostrap.php
I manage database error inside onError in model
I would make a single script from which manage all errors so if I
woul
Hi
I would use CAPISTRANO for web deployment of my cakephp application.
I have a big doubt about this.
The doubt is about how manage js and css minify and compress between
development enviroment and production enviroment?
Pratically I have that each view has his js scripts and his css
scripts (for
Hi
My problem is about the project of the models of my web application
I have a model Document . The problem is that this model must have
dinamic data fields.
A document can have like fields : title .text , data
Another can have : title, number , attachment
ect...
This fields can have different ty
Hi
I have to manage some xml that have an xsl associated.
What is the best way to manage xsl in cakephp?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@g
Hi
I have a problem about modelling data of my application and I don't
know how resolve it.
I present my situation:
My E-R is
__ _
| | N/\M ||
| Document | \>| DocumentField |
Hi
I have this strange behaviour that I can't to understand.
I would try to use the onError callback function.
Now If i set the onError function inside a model it works fine.
If I set the onError function inside AppModel It doesn't work.
Is it someone can help me about this?
--~--~-~--~
Hi
I develop a web application in cake and now I must to scale my system.
I think to replicate all my code in all my webservers but I have a
doubt :
The static images I must replicate in all them? And the javascripts
and the css in webroot?
If not how can I modify the helpers (html , javascript .
Hi
I have installed a plugin in my cakephp app.
Now inside this plugin there is a shell that helps to configure the
plugin.
My problem is that i don't know how tell to cake console to use this
shell
My shell is in app/plugins/media/vendors/shells
Sorry for the banal question
--~--~-~-
Hi
I try to use MediaPlugin of David Persson.
I have installed it I config it but when I tr8y test it using
documentation (http://wiki.github.com/davidpersson/media/attachment-
model ) but It doesn't work (the plugin doesn't save the attachment).
My situation is:
I have User model with :
Hi
I must use a EAV schema for my web app but I have no idea about how
realizate this in cake?
I have a table with entities , a table with atrributes and many table
with value (one for datetime value,one for varchar value ,one for text
value etc. ).
Can someone give me some suggestion about this?
Hi
For improve performance I think to use an external server like
static server (with lighttpd) to provide static content like
image,css, js and so the file uploaded by user.
I would ask if someone has experience about this and how he has
configured CAKE to do this?
--~--~-~--~~
Hi
I have this model:
class Document extends AppModel{
var $belongsTo = array(
'Author'=>array(
'className' => 'User',
'conditions' => '',
'fields' =>
'Author.id,Author.surname,Author.name',
Hi
I have a containable model.
I would apply the pagination on the results inside contain.
Example:
Models : Document hasMany User
In documents_controller.php I have this:
$document=$this->Document->find('first',
array(
'fields' => array('Document.*'),
'conditions' => array('Docu
Hi
I use pagination in a my view , in the relative action of controller I
use the find('matches') that Nate has shared in bakery.
Now in the view in helper paginator is added a "matches" parameter to
the url.
Is It possible to eliminate this from the url that is created by
pagination helper?
Many
Hi
I try to use ajax pagination but I get always an error if I try
without ajax the pagination works.
My code is:
view.thtml:
link('test',
array( 'controller' => 'documents',
'action' => 'test'),
array( 'update' => 'dataRecip
Hi
I would speed up loading time page so I would create only one
javascript and load it at the bottom of page.
Now I have this problem in this only one javascript I have also
prototype and scriptaculous and in my page I use for example Ajax
helper but obiusvly I get a javascript error if I load t
1 - 100 of 116 matches
Mail list logo