Friday, July 5, 2013

Re: redirect images url from live javascript

Share the code generating the <img> element.


On Fri, Jul 5, 2013 at 2:23 PM, baur79 <baur79@gmail.com> wrote:
please any hints?


On Thursday, July 4, 2013 12:46:18 PM UTC+6, baur79 wrote:
hi,

i have use the 3rd party jquery ajax javascript 
it returns me the live code which contain img tags
as <img scr="./images/file.png">

my url is example.com/tickets/
(controller name is TicketsController.php)

so img full path became as example.com/tickets/images/file.png
and gives me error as

Error: The action images is not defined in controller TicketsController 
Error: Create TicketsController::images() in file: app/Controller/TicketsController.php. 
<?php class TicketsController extends AppController { 
 public function images() { 
 }
 } 
Notice: If you want to customize this error message, create app/View/Errors/missing_action.ctp

how can i redirect only images url to 
example.com/ticketstaff/images/file.png
and place the images in folder 
app/webroot/ticketstaff/images/






--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Simon Males

--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: