I installed the Plugin, i do not see any error it is saving to the
Database, but not save the Dir fro the file. and DO not upload the file,
here is my Code :
my Model :
class Picture extends AppModel {
public function beforeValidate() {
$this->data['Picture']['filename']['name'] =
Hi All,
I have created my first shell that I need to run as a cron, I have the
shell setup as follows:
App::uses('CakeEmail', 'Network/Email');
class TaskEmailerShell extends AppShell {
public $uses = array('Task');
public function main() {
// DO NOTHING}
public function send() {
Dear CakePHP gurus,
I am using CakePHP ver2.2.1
The different tables in my database share similar functions which I am
using for web services. For example, the add, edit, view and delete
functions are similar across different tables. The only changes to be made
is that the table or object name
Schema introspects the "tables" but mysql provides views as if they were
tables.
the schema shell therefore sees the view as a table and creates a record
for it in schema.php, which must then be manually removed.
If they are not removed, when the schema is updated, tables are created
when they sho
Thank you very much. I will try it out.
On Wednesday, November 7, 2012 4:24:17 PM UTC+8, Andras Kende wrote:
>
>
> Try: $this->Auth->allow(); its changed in cake 2.2 ...
>
> Andras Kende
> http://www.kende.com
>
> On Nov 7, 2012, at 12:10 AM, Sam > wrote:
>
> Sorry for missing out the version num
anybody? Please help me
2012/11/5 polutan polution at all
> Hello folks :)
> I don't understand what does $action param and its default values mean?
> Because i can directly write $this->Acl->check("warriors/Aragorn",
> "ControllerNames/myMethodName") then it works, i don't need to supply
> $ac
Couldn't find the edit button and I forgot to mention this.
*update to the previous tip:*
If you use the tag function in your $this->Html->link you have to se the
tag htmloptions('escape' => true) and in the link htmloptions set it false.
Atleast for me, when I don't do this, it messes up the t
Ok, I think I found a suitable way by doing something else :). I came about
to this idea when I had to make some elements to my site and figured
out that I can use that for the image problem too.
*You can do it by using the HtmlHelpers tag-function: *
$this->Html->tag('img', null, array('src'
It's difficult to say without seeing your code. Define "can't use".
On Tue, Nov 6, 2012 at 5:57 PM, sbang4 wrote:
> I have an issue with using redirect in beforeFilter.
>
> First, it seems that I can't use redirect in appcontroller(beforeFilter). Is
> there a way around?
> I've tried with Auth co
I did a similar thing. Here's how:
public $hasOne = array(
'GalleryThumb' => array(
'className' => 'GalleryThumb',
'foreignKey' => 'gallery_id'
)
);
public $hasMany = array(
I think changing the regexp from + to ? in the first route would do it.
Router::connect(
'/open-account/:id',
array(
'controller' => 'users',
'action' => 'add'
),
array(
Try this:
$staticPages = array(
'contact',
'another_page'
);
$staticList = implode('|', $staticPages);
Router::connect(
'/:static',
array(
'plugin' => false,
Use as following-
In routes.php
Router::connect('/contact', array('controller' => 'pages', 'action' =>
'contact'));
or
Router::connect('/contact/*', array('controller' => 'pages', 'action' =>
'contact'));
and generate link as
One way
$this->Html->link( 'Contact', array('controller' => 'conta
Hi
I'm on CakePHP 2.2.x and I've built all my site links in the format...
$this->Html->link( 'Contact', array('controller' => 'pages', 'action' =>
'contact'));
…which generates URLs like http://www.example.com/pages/contact and everything
works. ie: /pages/contact shows my contact page.
I've
All functions are based on same logic.. But I have replicate that based on
role level. Here I have 5 roles in my tool. For that I have copy the
function and do some changes based on role.. That what I need all function
should be in same controller but from differnt external sources..
On Wed, Nov
I had the exact same problem
Is there any solution to this?
Also, it seems that I can't use redirect in beforeFilter in AppController
(always end up with a redirect loop).
Is there a way around? or it's not possible?
I need to redirect a user within project scope(grobal) or controller scope
Hello folks :)
I don't understand what does $action param and its default values mean?
Because i can directly write $this->Acl->check("warriors/Aragorn",
"ControllerNames/myMethodName") then it works, i don't need to supply
$action param.
Then if i do something like at the manual $this->Acl->ch
Hello,
I'm trying to use the "cake i18n extract" shell in cakephp 2.2.2 and
2.2.3 but I've got a problem.
After answered the questions the process starts with the message:
=
Extracting...
---
Paths:
/Users/tom/wwwroot/cakephp/app
is not schema just to generate tables? i think schema just focusing himself
to create tables. schema is not a SQL SELECT command.
2012/11/6 Greg Skerman
> Hi,
>
> For one of my projects, I need to join up against some static data in
> another database. The data in this database will never be wr
Hi Karthi
I have the same problem as the person who posted the errors. I truncated
the the 2 tables and still doesn't work.
Do you perhaps have another solution to this?
Thanks
Victor
On Wednesday, 21 March 2012 19:28:17 UTC+2, karthik wrote:
>
> First truncate all data's in GROUP and USER t
I have an issue with using redirect in beforeFilter.
First, it seems that I can't use redirect in appcontroller(beforeFilter). Is
there a way around?
I've tried with Auth component allowing all actions and it worked.
But I don't think this is a proper way to do it.
Second, I can't redirect user t
Halo folks :)
I Need to know variations of Acl's methods $aro param format. Hard to
understand AclNode::node() method. I want to cache Acl's methods, but i
don't know the variations of $aro param.
Thank You :)
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twi
Hi, I have long time experience in cakephp . I am working with this
framework from 2007 . You can hire me .
On Thursday, August 2, 2012 10:02:50 AM UTC+6, gw wrote:
>
> Hello,
>
> We are looking to add some team members.
>
> If you have the time and the cake skills, drop me a line
> and we c
My problem is quite simple: How do I create -tags with an external
url using cakephp's htmlhelper ? I have a site that hosts all static
content, such as images and javascripts and I need to use it's address on
my sites.
*CASE*
Lets assume my cake is running at http://www.mysite.com/caek/
My v
Models:
Gallery hasMany Image
Image belongsTo Gallery
standard stuff.
I am attempting to automatically create a "GalleryCover" for easy access
when outputting each gallery. So I did this:
// gallery model
public $hasOne = array(
'GalleryCover' =>array(
'className' => 'Image',
'foreignKey' => '
Hi all.
i'm making a simple app for a company concerned (almost paranoid) about
data privacy.
they fear that theyr data can leak through HTML browser caching.
i added $this->request->disableCache(); to my AppController's beforeFilter
callback.
is this enough?
any advice?
Thank you.
--
Like
Hey, someone can help me with a simple example with ajax in cakephp
--
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 post to this group, send e
Use one or more components.
On 7 Nov 2012, at 16:01, Steve Babs wrote:
>
> Hi ,
>
> I have created User controller . In that I implemented so many function. Due
> to that the no.of codes increase to 20,000. Because of that I cannot able to
> open that file any editor. Please give me a sugges
Hi ,
I have created User controller . In that I implemented so many function.
Due to that the no.of codes increase to 20,000. Because of that I cannot
able to open that file any editor. Please give me a suggestion to insert
code from diffrent file.
Thanks,
--
Like Us on FaceBook https://www
How do I set up a route that sometimes has a parameter and sometimes
doesn't? For example, I have the following two routes but I'm sure they
could be combined into one?
Router::connect(
'/open-account/:id',
array(
'controller' => 'users',
'action' => 'add'
),
array(
'pass' => array('id'),
'id' =
Thanks Andres.
It works for me.
On Wednesday, November 7, 2012 1:31:38 PM UTC+5:30, Sanjeev Divekar wrote:
>
> Hi,
>
> I have hosted CakePHP CMS app on Dreamhost which provides /stats for Site
> Statistic.
>
> How to enable it in routing?
>
> Thanks & Regards,
> Sanjeev
>
>
--
Like Us on FaceB
Try: $this->Auth->allow(); its changed in cake 2.2 ...
Andras Kende
http://www.kende.com
On Nov 7, 2012, at 12:10 AM, Sam wrote:
> Sorry for missing out the version number. I am using CakePHP ver2.2.1
>
> On Sunday, November 4, 2012 9:30:17 PM UTC+8, euromark wrote:
> you do realize that wit
Sorry for missing out the version number. I am using CakePHP ver2.2.1
On Sunday, November 4, 2012 9:30:17 PM UTC+8, euromark wrote:
>
> you do realize that without always(!) noting the cake version you are
> working on, that no one will be able to help you here?
> the way it works changed quite a
http://wiki.dreamhost.com/Making_stats_accessible_with_htaccess
add to top of .htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
RewriteRule . - [L]
Andras Kende
http:/www.kende.com
On Nov 7, 2012, at 12:01 AM, Sanjeev Divekar wrote:
>
Hi,
I have hosted CakePHP CMS app on Dreamhost which provides /stats for Site
Statistic.
How to enable it in routing?
Thanks & Regards,
Sanjeev
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are
35 matches
Mail list logo