EllisLab text mark
Advanced Search
18 of 23
18
   
Modular Extensions - HMVC version 5.4
Posted: 28 June 2012 12:13 AM   [ Ignore ]   [ # 261 ]   [ Rating: 0 ]
Joined: 2012-06-27
2 posts
wiredesignz - 27 June 2012 11:35 PM

Upgrade to CodeIgniter v2.1

thank you!
I very happy because everybody very friendly
but version 2.1 have errors with library file upload

$config['allowed_types'"png|gif|jpeg|jpg"

and i get a errors

The filetype you are attempting to upload is not allowed

I can’t upload image types png or (jpg,jpeg,gif);

 

 
Posted: 10 July 2012 12:27 PM   [ Ignore ]   [ # 262 ]   [ Rating: 0 ]
Joined: 2006-03-15
9 posts

Is it possible to have views in a folder with the same name as the module?

I have a module “documents” and would like to have a view folder in the module also name documents (views/documents/), however at present I always get an error. If I change the name of the view folder to docs it works fine.

 
Posted: 10 July 2012 01:15 PM   [ Ignore ]   [ # 263 ]   [ Rating: 0 ]
Joined: 2011-09-18
61 posts
CI flea - 10 July 2012 12:27 PM

Is it possible to have views in a folder with the same name as the module?

I have a module “documents” and would like to have a view folder in the module also name documents (views/documents/), however at present I always get an error. If I change the name of the view folder to docs it works fine.

Yes, it’s possible though the path would be “modules/documents/views” and not “views/documents”.

 
Posted: 11 July 2012 03:23 AM   [ Ignore ]   [ # 264 ]   [ Rating: 0 ]
Joined: 2006-03-15
9 posts

Thanks for the reply, however the path I would like is modules/documents/views/documents/ (i just omitted modules/documents/ as i though it was understood), i.e. a view folder with the same name as the module?

 
Posted: 11 July 2012 12:41 PM   [ Ignore ]   [ # 265 ]   [ Rating: 0 ]
Joined: 2011-09-18
61 posts

You can do that, you just need to prefix your views with “documents/” each time you load them.

 
Posted: 12 July 2012 03:21 AM   [ Ignore ]   [ # 266 ]   [ Rating: 0 ]
Joined: 2006-03-15
9 posts

Thanks again, but I always load them with documents/. Just to clarify loading of documents from subfolders always work except when the subfolder has the same name as the parent module.

 
Posted: 12 July 2012 05:48 AM   [ Ignore ]   [ # 267 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-10
2919 posts

Of course it works. But you must specify the module and sub-directory.

$this->load->view('documents/documents/whatever'); 
 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

 
Posted: 12 July 2012 05:54 AM   [ Ignore ]   [ # 268 ]   [ Rating: 0 ]
Joined: 2006-03-15
9 posts

Thanks,

never thought of that. will try later.

 
Posted: 26 July 2012 06:37 AM   [ Ignore ]   [ # 269 ]   [ Rating: 0 ]
Avatar
Joined: 2012-06-09
82 posts

Hi. is this version compatible w/ the latest version of CodeIgniter? And what are the known bugs in using this? I’m planning to use this for my projects so it will be more organized than using just the MVC pattern.

 
Posted: 26 July 2012 07:38 AM   [ Ignore ]   [ # 270 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-10
2919 posts
rei - 26 July 2012 06:37 AM

... is this version compatible with the latest version of CodeIgniter? And what are the known bugs in using this? ...

Yes it is totally compatible. The only bugs that are evident are due to some developers lack of understanding of PHP and CodeIgniter.

 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

 
Posted: 26 July 2012 07:45 AM   [ Ignore ]   [ # 271 ]   [ Rating: 0 ]
Avatar
Joined: 2012-06-09
82 posts

thanks for your reply sir smile I’m using it right now and i really liked it! So this extension is really stable. Thanks again for your reply sir smile one more question.. If a new version of CI comes out can I safely upgrade my site built w/ codeigniter and this modular extension?

 
Posted: 26 July 2012 08:00 AM   [ Ignore ]   [ # 272 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-10
2919 posts

Yes of course. Modular Extensions - HMVC will continue to match CodeIgniter development for as long as possible.

 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

 
Posted: 26 July 2012 08:21 AM   [ Ignore ]   [ # 273 ]   [ Rating: 0 ]
Avatar
Joined: 2012-06-09
82 posts

okay sir thanks for the info and for your hard work. I’m using this extension now and in fact I’m now rewritting my code from MVC to HMVC because it will be a large compilation of codes after months of development and by using this extension the codes will be more easy to maintain and modify because it will be more organized. Thanks again smile

 
Posted: 26 July 2012 10:35 AM   [ Ignore ]   [ # 274 ]   [ Rating: 0 ]
Avatar
Joined: 2012-06-09
82 posts

Hi, can someone please give me a link in how would I integrate Ion Auth library in a CodeIgnier w/ modular extensions HMVC setup? Or can someone give me ideas how to integrate it?

EDIT:

Problem solved.
http://ellislab.com/forums/viewthread/221689/

 
Posted: 14 August 2012 06:20 PM   [ Ignore ]   [ # 275 ]   [ Rating: 0 ]
Joined: 2010-10-24
1 posts

There appears to be a bug in the HMVC loader class when loading a library using an alias.  I need two different instances of a library on the same page. 

For instance,

  $this->load->library(‘template’, NULL, ‘instance_1’);

  $this->load->library(‘template’, NULL, ‘instance_2’);

But I always get back instance_1.

The problem appears to be in the MX/Loader method library().  Once the first load of the library class get cached, it always returns and doesn’t allow the alias logic for the second call to execute

public function library($library = ‘’, $params = NULL, $object_name = NULL) {

  if (isset($this->_ci_classes[$class]) AND $_alias = $this->_ci_classes[$class])
return CI::$APP->$_alias;

}

Am I missing something?

thx

 

 
18 of 23
18