Giter Club home page Giter Club logo

starter-public-edition-4's People

Contributors

dependabot[bot] avatar exelord avatar ggallon avatar ivantcholakov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

starter-public-edition-4's Issues

$this->uri->segments() should not return the language segment.

This is a change that I am going to implement for releases 3.0.112 and 4.0.112.

The language segment should not be returned by:

$this->uri->segment()
$this->uri->segment_array()
$this->uri->total_segments()

Rationale:

There is an option about hiding the URI-segment of the default language. But when this option is changed in an already built system, the indexes of the targeted other segments will change, and code will not work correctly.

Till this moment I avoided this problem by using $this->uri->rsegment(), but this was not the conceptual solution.

The URI language segment is needed only for language detection, for other aspects it should be "invisible".

Cache Issue

Hello @ivantcholakov ,
Currently i am doing one project on it. When I have added data from back-end(administrative) panel , data is successfully submitted to database but mean while reading from the database due to cache in platform/writable (WRITABLEPATH) it is not showing over browser, Please help me here how to turn off all those cache.
CI_VERSION = 3.0.6
PLATFORM_VERSION = 4.0.128

Modules and rURI

I think that this function:

$this->uri->ruri_string()

should return something like:

/modules/controller/function

but it return only:

/controllers/function

This is intended effect or just a bug? In my opinion ruri should return all path without any routing, so here is something wrong.

If I am wrong please explain me.

route question

if you create a 'test' module with a 'test' controller with no index and no route you get a blank page instead of a 404

is this a bug or... ?

Plans for 4.4

2015-11-13

  • Preparation, 4.2.x: Introduce in this project CHANGELOG.md file.
  • Preparation, 4.2.x: Check against PHP7 (final) compatibility.
  • [x ] The minimal required PHP version for the next major release would be 5.4 5.5.0.
  • The next major release 4.4 will be based on CodeIgniter 3.2. Deprecated code/features in CodeIgniter 3.2 are to be preserved here as much as it is possible.
  • The transitional code that supports the old CI2 class/file naming convention is to be removed. 4.4 will support CI3 "ucfirst" class/file convention only.
  • Upgrade HMVC (https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc) to version 5.5.
  • When it is applicable, the previously manually installed third party PHP components should be installed via Composer.
  • #31
  • #56
  • The directories www will be renamed into public_html public.
  • Bring automation in this project, adopt RoboTask PHP task runner, https://github.com/Codegyre/Robo See this article: http://www.sitepoint.com/look-ma-no-nodejs-a-php-front-end-workflow-without-node/
  • The helper functions for web assets are to be reworked slightly for supporting automatically installed web assets.
  • Purge all Bootstrap 3 oriented web assets. Purge all web assets and PHP code oriented on support of old browsers.
  • Adopt Bootstrap 4 (https://github.com/twbs/bootstrap) stable release. Update or rework third-party web assets so they could be compatible with Bootstrap 4.
  • Adopt AdminLTE 3, https://github.com/almasaeed2010/AdminLTE
  • Make a MySQL database for this project. Whether it would be a direct MySQL dump or a CodeIgniter's migration is a subject of a later decision.
  • Develop a simple administration panel that supports user management.
  • Develop a Semantic UI based simple front-end.

2015-11-14

  • Satelite projects (codeigniter-phpmailer, MY_Model): Drop support for CodeIgniter 2.
  • CodeIgniter, the system files: Move the customizations within outside, separate files.
  • CodeIgniter: Consider automatic upgrades via Composer (done).
  • Proposed by @buoncri: Integrate Grocery CRUD (https://github.com/scoumbourdis/grocery-crud). Ivan: Throw away the current old-looking visual theme, develop A Bootstrap 4 based and MIT-licensed visual theme for Grocery CRUD.

2015-11-18

  • Replace or convert all the styling sources from less to scss.

2015-12-03

2016-01-05

Implement more complex parsers / template engines:

  • Lex (that is used by PyroCMS, but implementation would not be the same, compatibility would be partial);
  • Twig;
  • Blade, if it is possible.

2016-02-08

2016-02-10

2016-02-26

2016-06-08

  • Cron Task Scheduler

The list is not final, it could be extended or changed over the time. There is no a deadline for all these goodies. Suggestions and objections about this plan are welcome.

segment_2 results in white page

I am trying to create an app and it seems that non existing module methods result in a white page.

e.g.
/www/playground/ gives module playground, playground_controller
/www/playground/foobar gives white page (not 404)

CSRF problem

Hi,
I noticed problem with CSRF protection. I set all settings correctly. I even use form_open() for adding CSRF hidden element. And... Key is added to the element, CSRF is writing to cookie but what is weird .. I can still refresh a sent form. I tested it also in your clean project and i noticed the same problem.

hmm... Could you look at this?

common hooks ?

is possible to have common hooks ?

like define in applications\site\config\hooks.php
and place the hook file in core\common\hooks

i tried and no luck

code question

in Registry class the function has

public function has($key)
  {
    $key = (string)$key;

    if ($key != '' && array_key_exists($key, self::$data))
    {
      return TRUE;
    }

    return FALSE;
  }

could be rewritten as

  public function has($key)
  {
    $key = (string)$key;

    return $key !== '' && array_key_exists($key, self::$data);
  }

?

impact of core_model on loading time

hi

i load 3 models (that extend core_model) on base_controller in admin and every one of those models add 1s on loading time

is something wrong on my end or that's the impact of core model ?

Install using composer

Hello mr @ivantcholakov , i think this is best codeigniter's customs so far. And i plan to use this for my next projects. This projects is updated frequently, so i think this project (starter public edition 4) is good if we can install from composer, so if there are an update, we just use composer update. So, can i ask you to make it available on composer?

Regards

NB : sorry for my bad english

Database Session

Hi,
I noticed that Databese Session driver isn't working correctly. When its enabled, every time when i refresh a main page I've got an error something like "Repeated ID blah blah blah". So looked to the code and i think there is a problem with validation varible _row_exists. Could you look at this? I really need help with database session.

Btw.
I love your project :) every time when I build some app i use your masterpiece. Thank you and keep going.

Got a new Error

I got this error after the footer in latest release.
(below: - I have use database for session.)
error1

PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/msql.so

Running Apache 2, php 5.5.9 on Linux Mint 17

I get the following error on the home page (http://localhost/ci_test/www/)

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/msql.so' - /usr/lib/php5/20121212/msql.so: cannot open shared object file: No such file or directory

Filename: Unknown

Line Number: 0

Backtrace:

File: /var/www/html/ci_test/platform/common/core/Core_Exceptions.php
Line: 164
Function: include

File: /var/www/html/ci_test/platform/common/core/Common.php
Line: 263
Function: show_php_error

Mysql does work OK with other frameworks I have installed on this box (Nette and Composer)

common and per app events

hi

i want to define some common events and per appname events without creating a module for this
so i was thinking on creating a class in platform\common\libraries,platform\applications\appname\libraries

how would you do it ?

db question

hi

i need to save some config options to the database (with caching)
what is the earliest place (file position etc) i could use the database to load those options (in case the cache file doesn't exist)

thanks in advance for your help

unrelated (Plans for 4.1)
any chance to import some nice things from sprintphp ( https://github.com/ci-bonfire/Sprint )
in the order of importance (for me)
Email Queue system allows for very flexible email generations and sending.
Simple, GUI-less cron controller that can be used through standard crontab or scheduled tasks.
Database Seeding with CLI tool
The Forge - a code builder with simple generators in place, but fully customizable and easy to add your own.

route question

hi

i have a route declared like this
$route['a/(.+?)'] = 'b/$1'; won't work

if i declare it like this
$route['a'] = 'b'; it works

am i missing something ?

another thing i see in your htaccess you offer two options
1 remove www
2 force www

if i chose option 2 and use site_url('controller/method')
the url generated is without www

keep multilanguage but disable language segement in uri or method for translated uri's

hi

is there a way to keep multilanguage but disable language segement in uri ?
or any suggestions on how to implement translated uri's

so would be possible to implement a config option to activate deactivate the automatic insertion of the language segment ?

i need to create something like this
site.com/en|es|it etc for any other language but default

the rest of urls i need to translate

site.com/contact (en)
site.com/contatto (it)
site.com/contacto (es)

this is for a cms

routing help

hi

sorry to bother you i have a question

in what file/function are you comparing the uri to the routes from the routes.php

because i tried to follow the code and i can't find that portion

thanks in advance

different language for applications

hi

how would you go enabling 2 languages for site and only one language (is one of the 2 from site) for admin ?

example : site in english and italian and admin only english

Modules Helper problem

Hi Ivan,
I found a problem with helpers in module folder.

I create structure like that:
-mymodule
--controllers
--helpers
---MY_new_helper.php

and when i try to load Ive got:
$this->load->helper('my_new_helper');

Unable to load the requested file: helpers/my_new_helper.php

I tested it with many combination of name of the helper and adding module name to the name like:
$this->load->helper('mymodule/my_new_helper');

when I load helper in module from APP folder everything works OK
-appfolder
--helpers
---MY_new_helper.php

$this->load->helper('new_helper');

Could you look at this?

Template

Can We have Different Template in Different Module. If So, How can we do it ??

"Assets directory is not writeable"

Hi,
I have a problem with non-mvc page. When I got to /www/non-mvc/demo.php/ Ive got an error: Assets directory is not writeable. I checked permissions and I even set it to 777. Also I tested it on 2 different servers.

environment and errors reporting

Hi,
Where can I find file like a in original CI index.php? There were settings which were able to set environment. Is that option still exist?

routes per module ?

hi

how would you go for adding routes / module ?

in my situation every module can have multiple controllers and not always the controller name can be the route

thanks in advance for your response

question about modules

hi

is there a way to get all available modules or i have to parse the directory structure
i ask because i don't want to redo a parsing if the framework is already doing that

any if you are kind enough to offer a suggestion how would you implement a acl for a unknown number of modules

[Enhancement] Extending DB Drivers

Liking your extended CI... pretty much everything we use in CI is there and mainly because of multisite support.

I'm looking for option to extend db drivers, which is even missing in main CI framework. So we structure it in same way as in system folder to extend in APP folder.

application/site/database/drivers/{driver_name}/

There are few functionality i want to add to my mysql driver, among them insert_duplicate_update() is one of them. And there is also this count_totals_from_last_query() + some more.

See if it can be done.

site url from admin

hi

i'm sure i'm missing obvious but i'm so tiered

how can i build a url to the public site from the admin

something like site_url('my/path') i tried http_build_url(BASE_URL, '../api/get_shared_images') without any luck

sorry for disturbing you

multiple applications

Hello Ivan, congrat your great work! It helps me a lot to learn CI3...

Untill I can find my own answers, would you tell me how multiple applications can be used?
What I mean: are they totally separated, or for instance: if I have one login module in one of the apps and someone is logged in using that module, is it possible for the other app to check the logged in state or I need another login module for the second app, so the two login mechanism is totally different from eachother?
Thank you for your answer and for your brilliant work!
Joey (codexmonk)

load model from module

hi

i have upgraded to the latest version and now i get a fatal error 'there is no such property'
when i load a model from inside a module
if i place the same model inside the module folder of the application it works
any idea what i done wrong ?

Sub-dropdown

The sub drop-down menu appears like this. Do you know how to fix this.
menu_issue

Email templates and global XSS filtering

@uxchandra

"Hi,
I am trying to store email templates in database.
I have enabled global Xss filtering : $config['global_xss_filtering'] = TRUE;

Now the problem is while saving the form data , inline style sheets are being removed

is being converted to

Is there any work around keeping the global xss filter enabled can I store the same data. I am encoding the total template html data before storing (to ensure security).

Thanks."


  • Global XSS filtering is a mistake that is acknowledged by CodeIgniter creators. There are also articles in the Internet that don't recommend enabling this option. Disable it and apply XSS filtering where you think it should be applied place by place.
  • CodeIgniter creators now recommend XSS not to be applied on data input, but on data is output.
  • For your specific case (template), since CodeIgniter's filtering removes useful pieces of data, you can try to use HTMLPurifier with precise settings which tags and HTML attributes are to be allowed in your email templates.

Cannot access protected property...

Message: Cannot access protected property CI_Loader::$_ci_cached_vars

Filename: libraries/Template.php

Line Number: 981

I'm using CI3 and just the template library, I copied it into CI's normal library application/library directory and the template_helper into the application/helper directory and autoload both the library and the helper - (created and autoload a helper for the ci() alias to get around that). I already have an existing project that's using Foundation instead of Bootstrap, I'd like to simply add the template library to it if at all possible.

Template, default layout no found

Hello, if I do not set the template "layout" in my controller: $this-> template-> set_layout ('layout_name'). I have an error message "Unable to load The requested file: default.php". The Template library does not check the folder "core/common/view" ? Do you have any idea? thank

advanced examples suggestion

hi

first thanks for mentioning me in credits but that was not necessary

second can you please add some example on how to use third party libs

i tried to use https://github.com/thephpleague/omnipay
i installed via composer, modified composer_autoload to true and i tried to use the code sample from the git page and got a Fatal error: Class 'Omnipay' not found
am i missing something ?

another package i tried to use is https://code.google.com/p/php5-image/
this one without composer
i copied the content of the src folder from the download archive to common\third_party
so i have common\third_party\Image\Image.php
i tried to add the lib to autoload_classes config and just lost myself trying to fix require_once includes

if you have the time and patience i think a demo/tutorial would be appreciated by many people

thanks again for your work and close this request if it has no value

email config

hi

can you please add support for

$mail->SMTPOptions = array(
    'ssl' => array(
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true
    )
);

PHP 5.6 certificate verification failure

In a change from earlier versions, PHP 5.6 verifies certificates on SSL connections. If the SSL config of the server you are connecting to is not correct, you will get an error like this:

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1.
OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

The correct fix for this is to replace the invalid, misconfigured or self-signed certificate with a good one. Failing that, you can allow insecure connections via the SMTPOptions property introduced in PHPMailer 5.2.10 (it's possible to do this by subclassing the SMTP class in earlier versions), though this is not recommended:

Form_validation - is_unique[]

Hi,
I noticed a problem with form_validation helper. When I set rule is_unique[users.email] I always get back FALSE as respond. Whatever I will type there always is FALSE. In config folder there also missing form_validation.php for settings some default options. Its not so much important but it can do nicely work :)

bug in fix_unchecked ?

hi

i think i found a bug in fix_unchecked

create a form with 2 checkboxes and nothing else

post the form nothing is posted
it should post value 0 if nothing is checked or i'm wrong ?

the problem is on if (empty($_POST) || !is_array($_POST))
because nothing is checked post is empty

Read the language settings from the database

Currently the language settings (the leading language and the supported languages) are set through configuration files only. The purpose of this task is adding a database structure, and model for these settings, so they can be controlled within your administration panel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.