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 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
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 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 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 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
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&
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
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
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
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
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
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
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
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
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 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
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 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',
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 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 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
, 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 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
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
name (it's good practice everywhere
> really). So ModelA.field_name, ModelB.field_name etc.
>
> Jeremy Burns
> jeremybu...@me.com
> On 21 Apr 2010, at 14:40, marco.rizze...@gmail.com wrote:
>
> > I want use Model->saveAll() with fieldList to avoid to save some
> &g
I want use Model->saveAll() with fieldList to avoid to save some
field
My problem is that I have in the related model two fields with the
same name but one field (of first model (ModelA) ) should be saved and
the other (of second model(ModelB)) shouldn't be save.
How do I set the fieldList in save
For example if I am superadmin I would can edit and add data even if I
don't respect the valdation rule.
So I will have views like superadmin_add,superadmin_edit where I
disable validation rule
On 9 Mar, 11:18, WebbedIT wrote:
> The answer depends on exactly what you're doing at the time.
>
> Wi
x27;, '',
> $field['recipients']));
> foreach($recipients AS $k => $v) {
> if(!$this->User->findByUsername($v)) {
> $invalid[] = $v;
> }
> }
> if(!empty($invalid)) {
> return "Could not find recipient(
Hi
I have a question about saving data.
I describe my situation.
I have a web application where a user can send document to other
users.
Now a user can send only to certain users.
A user send a document through an "add" action where I do a save where
the data to save is :
$this->data['Send']['send
Sorry I have mistake the url in the iframe . All works fine :) .
On 5 Mar, 09:50, "marco.rizze...@gmail.com"
wrote:
> Hi
> I'm using Media view to allow my users to download files and to keep
> files on top the web server root.
> Now I have the need to display these fi
Hi
I'm using Media view to allow my users to download files and to keep
files on top the web server root.
Now I have the need to display these files inside an iframe of the
page.
I try to use Media View and set 'download' parameter "false" but I get
an "Invalid Content" error.
I would ask if exists
ame data in two different tables
>
> anl
>
> On Wed, Feb 10, 2010 at 3:23 PM, marco.rizze...@gmail.com <
>
> marco.rizze...@gmail.com> wrote:
> > Ok many thanks.
> > Using the solution that you have suggested I don't need to use ACL.
> > In this case for ma
the user permits on documents
> table doc_permits(
> user__id, document_id, create?, read?, write?, delete?,
> etc
> )
> and check this table when somebody wants to touch or create some
> document
>
> On Feb 10, 1:41 pm, "marco.rizze...@gmail.com&quo
the
> option 'access info'
> to show the permits for that resource (this way used less db queries)
>
> On Feb 10, 12:41 pm, "marco.rizze...@gmail.com"
>
> wrote:
> > Hi
> > I have this question:
> > I use ACL for manage the access to
Hi
I have this question:
I use ACL for manage the access to documents by users.
Now I must display a list of all documents that are accessible by the
logged user.
This list must be paginated.
I have no idea about how to do this and I think to abandon the ACL and
manage the permits with a big table
d table.
>
> I guess.
>
> cheers
> Lorenzo
>
>
>
> marco.rizze...@gmail.com wrote:
> > Is there someone that can help me about this?
>
> > On 2 Feb, 19:02, "marco.rizze...@gmail.com"
> > wrote:
> >> Hi
> >> I'm working
Is there someone that can help me about this?
On 2 Feb, 19:02, "marco.rizze...@gmail.com"
wrote:
> Hi
> I'm working on a legacy system , i must to defina an HABTM relation
> between User and Group. In User model I have this:
>
> var $hasAndBelongsToMany=a
Hi
I'm working on a legacy system , i must to defina an HABTM relation
between User and Group. In User model I have this:
var $hasAndBelongsToMany=array(
'Group' =>array(
'className'=> 'Group',
'joinTable'=> 'utenti_gr
Hi
I'm newbie on cakephp
I have a big doubt about if use ACL or HABTM in my web application. I
would ask you some suggestion.
My system is:
Model:
User , Organization , Document
Organization HABTM Recipient (User)
Organization HABTM Administrator (User)
Document belongsTo Organization
Document H
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 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
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:
!
> 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
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
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
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 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
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 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 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 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 Form helper like this:
e($form->input(
'startDate' ,
array(
'id' => 'starDate',
'name' => 'data[starDate]',
'label' => 'Start date:' ,
'type' => 'date',
'dateFormat' => 'DMY',
'
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 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 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 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 use $ajax->link function.
I have noted that always a post request is done.
I would ask if it is possible to do a GET request.
What params must be changed?
Many Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
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
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 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 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 have this model:
class Document extends AppModel{
var $belongsTo = array(
'Author'=>array(
'className' => 'User',
'conditions' => '',
'fields' =>
'Author.id,Author.surname,Author.name',
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 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
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 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 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 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 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 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
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 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
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 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 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 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 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 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 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
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
--~--~---
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
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
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 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 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
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 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
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 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
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 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
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 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
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 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
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 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
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
1 - 100 of 116 matches
Mail list logo